summaryrefslogtreecommitdiff
path: root/sc/source/core/data
AgeCommit message (Collapse)AuthorFilesLines
2014-12-03remove boolean parameter default from ScDocument::SetDirtyEike Rathke2-5/+5
... and force the caller to make a decision. In fact some needed to include empty cells. Change-Id: I82b6ef72f7ecda6543b3cafc70f475519870b471 (cherry picked from commit 135b8d6466ade1e8724e604f705f95cecf4c4881)
2014-12-03get rid of defaulted boolean parameters in ScColumn::SetDirty()Eike Rathke1-1/+1
Change-Id: Iba030c1a4fd3dad34bdd61377b73fa76a062b5f8 (cherry picked from commit a1a1c4600e6c7ee457b62098128b27471c077908)
2014-12-02Double blank lines...Kohei Yoshida1-1/+0
Change-Id: I826db178ceea4a409ad9e14ff73b5edaf136e435 (cherry picked from commit 975a054cc2eeb04516f1f1ef3c9064b2f3cd9456)
2014-12-02Let's not forget to move the comment too.Kohei Yoshida1-2/+4
Change-Id: I86f2107860cf7e014277abdc14307c444142fea6 (cherry picked from commit 93b809d4c4151a02404308a20ecb20f1d6378e0a)
2014-12-02Put this inside the bulk broadcast scope.Kohei Yoshida1-1/+1
Because setting formula cell dirty may indirectly trigger area broadcast. Change-Id: Id8b500c659119df3637ca9a27481267c140e49d3 (cherry picked from commit 672484e615434f7133cc838442962f5abf1ad225)
2014-12-02Reduce scope level.Kohei Yoshida1-19/+20
Change-Id: Icfa4a81ebab1df943a71869fb8fc6409a8927464 (cherry picked from commit bdbe60051878bda9e9df11cfef032788c8347ba6)
2014-12-02fdo#86762 re-establish listeners on moved broadcastersEike Rathke1-36/+64
... also in SortReorderByColumn() similar to SortReorderByRow() Change-Id: I7665dcc90d70fcf3b08bef0adb9ab6aaff1cdcdf (cherry picked from commit e119f3883513aeaa49f332362620e955dc8b453f)
2014-12-02fdo#86762 broadcast also empty cells after sortEike Rathke3-6/+21
Change-Id: Ie275a754c530d6039ed14304900dd71416f36e46 (cherry picked from commit 08793e08c7e9cefe594c49130f782725e386c463)
2014-12-02fdo#86762 re-establish listeners to move cell broadcastersEike Rathke2-46/+109
... for UpdateReferenceOnSort=false Change-Id: Id90288660e317d6e47ee01ee3b5ff9058cfa18df (cherry picked from commit 6c2111f17089eb667bf526561d7667d17825e822)
2014-11-30we need to copy the condition format cell for cell, fdo#86253Markus Mohrhard1-2/+5
Change-Id: Ic090e1b9d13780e7e895a85901d3329cc5703688
2014-11-28test rows for validityCaolán McNamara1-0/+3
Change-Id: I501c1c18df96b5b2ad628e86cfb724a541d5c4b6 (cherry picked from commit 1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41) Reviewed-on: https://gerrit.libreoffice.org/13168 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-11-28Make whether to use OpenCL or not a global optionTor Lillqvist1-3/+4
Add a toggle to the "General" page. Change-Id: If35b1472032706b09a3bc3499c55cbd3ac2e13ac
2014-11-25More efficient way to check & insert listener into ptr_map.Kohei Yoshida1-4/+8
Change-Id: I09ec8ed8f05621b72984a34f47db50d20ebd6c06 (cherry picked from commit 42c8178ce73756f85fa41473bb16f667f7f564e9)
2014-11-25fdo#86615: Track dependent formulas after bulk-broadcasting...Kohei Yoshida1-0/+4
of group area listeners. Change-Id: I3a8d2ceb57462c2c2c4cddb6e34966d2465e149b
2014-11-25Adjust ref undo to ensure group area listeners are used.Kohei Yoshida10-44/+214
When undoing row deletion (and possibly other similar undo's). And write test for it. Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33 (cherry picked from commit 0dae7466fff1e742543ef7512b7dd22472c75624)
2014-11-25fix fdo#79441 again and keep references to other sheets during sortEike Rathke2-0/+6
... 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 (cherry picked from commit f0e7364603c9566bc158303c515c3274ccba62ca)
2014-11-21Use group area listeners when deleting rows.Kohei Yoshida7-15/+91
Change-Id: I9ceb1cabf448349e087e4d5c4c2b1a75af91dd75 (cherry picked from commit 5432e2a5ef7a3e131d2496e19bd0c6a86955319f)
2014-11-21Dump formula group listener info.Kohei Yoshida1-6/+22
Change-Id: Idbad1451393c42c272465907312c64c65eba9525 (cherry picked from commit 5dd60299c668cd36cc5cc5e8bd5b162e1fc9ef13)
2014-11-21Handle group area listeners correctly when deleting cells.Kohei Yoshida2-17/+44
Change-Id: Ic37084ed670f53e0354056f7bef54229971dd7c2 (cherry picked from commit 880f94b86ad8559081839fc444bfa1a589fdec29)
2014-11-20Adjust InsertRow() for group area listeners.Kohei Yoshida4-4/+140
Change-Id: I813b45d015eb1ae8dc7bd1242152ef734b5fe08c (cherry picked from commit 01e14bd403e749116844b6ab0b0a7afc66347e90)
2014-11-20No need to start listening in CalcAfterLoad for xls import.Kohei Yoshida4-10/+15
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-20fdo#83765 do not update references in SortReorderByColumn() if disabledEike Rathke2-5/+8
Similar to SortReorderByRow() Change-Id: I11dd710c00a56a5f56aeb048fa2258631555a220
2014-11-19Use group area listener when entering a new single formula cell.Kohei Yoshida2-7/+17
Change-Id: I01dc4537919b69a312e92ede2ae00fbe7d781bd7
2014-11-18Use group area listeners during ODS import.Kohei Yoshida2-6/+21
Change-Id: Id01f9021dda7f33255f8206174cd730507ab55ad
2014-11-18Use group area listeners when filling down formula cells via fill series.Kohei Yoshida4-19/+175
Change-Id: Ib0d4f542986dc09968cad8b76da9d6e034eddd37
2014-11-18Combine StartAllListeners() and StartNeededListeners()...Kohei Yoshida5-57/+30
And call the new method StartListeners(). This also adjusts what was previously StartAllListener() to be group-listener aware. Change-Id: I74de45c00f5b8ef232eea9fe3b93aa44d1d8855b
2014-11-18Let's not re-use the same iterator esp when it's still iterating.Kohei Yoshida2-5/+10
Change-Id: I1752857bc036f8d389b4b71d570cf83a76ef29ea
2014-11-18Rename Activate... -> Attach...Kohei Yoshida1-8/+8
Attach is the new one we are going with & offers nice contrast with 'Detach...'. Change-Id: I4578f4c7b9d989e41d433d7c8aa96a9317aa6919
2014-11-18Unnecessary casting.Kohei Yoshida1-1/+1
Change-Id: Id7d9b28921e96842df1e7c0d735dba4d3dbb6156
2014-11-18Simplify DeleteCells to not require 2 out parameters for the same thing.Kohei Yoshida3-18/+36
One can easily get constructed from the other after returning from the method. Change-Id: Iafc52efa7714b7cf4d284effda8034cb6f36bf91
2014-11-18Register group area listeners as needed when inserting/deleting cells.Kohei Yoshida3-31/+48
Change-Id: I583ace5d134d526d660d4ff0bbf4a16aa10cbe5a
2014-11-18Unused local variable.Kohei Yoshida1-1/+0
Change-Id: I6a3d191b10eec119eea5af6218e6c298f2826b33
2014-11-18Regroup formula cells in columns before initializing them.Kohei Yoshida1-1/+3
Because the initialization of area listeners now depend on the grouped status of formula cells. Change-Id: Idf61f57387ba62c57d87030c16544bc07836826f
2014-11-18Rename these to make it clear that they are only to be called from ...Kohei Yoshida3-7/+7
ScDocument::CopyFromClip. Change-Id: Ia95b65ca7982735b9c217a7b60d194117d64e774
2014-11-18Use group-area listeners during copy & paste if we can.Kohei Yoshida5-26/+109
This should reduce the number of area listeners generated esp. when replicating tons of formula cells down the column. Change-Id: I1ea8f51f667e6b0e1a646f84d79f5e8430b478d5
2014-11-18Avoid unnecessary broadcasting when deleting cells prior to pasting.Kohei Yoshida4-11/+10
Change-Id: Id224fd6fdb804350e7e00634db802e80090ae6d7
2014-11-18Rename methods whose name no longer represent what they do.Kohei Yoshida3-9/+10
We now do all broadcasting at the end of CopyFromClip, and nowhere else during pasting from clip. Change-Id: I1cb2c529f127d6e4080e49e4827f048ce5a19f95
2014-11-18Avoid area listeners and such during formula cell paste replication.Kohei Yoshida2-8/+16
All formula cells get marked dirty and start area-listening at the very end of CopyFromClip. No need to do it in CloneFormulaCells. Change-Id: I9faf48fd722c2ebcf4b74d5e523317b5d9c71a22
2014-11-18Send broadcast range to the area broadcast slot machine.Kohei Yoshida3-14/+158
Rather than iterating through cells in the range and broadcasting by cells individually. This way we can take advantage of the new group based area listeners and it's much faster this way. Change-Id: I8a4b49bce69d89b5b4698790befe4390871c755d
2014-11-18Dedicated listener type tailored for formula groups.Kohei Yoshida6-43/+156
Right now, it's only used when loading an xlsx file. But eventually this one should be used everywhere. Change-Id: I216c3a9a33c4b8040e8284d59299e0637471fb50
2014-11-18Reduce duplicate broadcasting done when pasting a range of cells from clip.Kohei Yoshida4-27/+102
We do pasting from clip in 2 steps: 1) delete the destination range, then 2) paste the content onto the destination range. The old code would broadcast both during 1) and 2). This change consolidates them and do broadcasting only once at the end, and also avoids broadcasting the same cell twice, which the old code sometimes did. Change-Id: Ic524c2b70888ce158619d99cbfb55dea85870497
2014-11-18Differentiate shared and non-shared formula cells when registering.Kohei Yoshida1-5/+13
For now this is just for a pure redirection, but later we'll use this to do a different area listening registration for grouped formula cells. Change-Id: I8e68bb53c3e96821175ae562ef36ec5e800c8688
2014-11-18Add a means to dump the state of the area broadcaster slot machine.Kohei Yoshida2-0/+64
Change-Id: I158307de667dbe621376dfc01adeef89aa12faaa
2014-11-18Optimize area broadcast iteration ...Kohei Yoshida1-2/+12
for cases where no areas are marked for removal, which I believe is mor common use case than others. Change-Id: I3f53fb5e6ab4a9172e358bec0c71289d1e92ac19
2014-11-18Scope reduction.Kohei Yoshida1-87/+86
Change-Id: Ic0cb74d220dccdcb4f607f4883b9b7fdf86bb080
2014-11-18Move this code to the context class.Kohei Yoshida2-117/+128
Change-Id: I387dba24993d418a2b3923eac992ad2506229704
2014-11-18Speed up pasting of single row onto multiple destination rows.Kohei Yoshida4-123/+160
This is an extension of the earlier paste optimization of a single cell across multiple destination cells. Change-Id: I3a60300d3d0e11420d997bea8f7f540e948f56cc
2014-11-18Make these methods non-inline again.Kohei Yoshida1-0/+80
Change-Id: I34e18fa1607d56351e1c3656b1f37a823b7a5609
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl17-0/+23
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-15Remove tools/fract.hxx from document.hxx.Kohei Yoshida1-0/+1
If a forward declaration does the job, use that. Adding a new header in document.hxx is a very expensive operation since almost everyone in sc includes document.hxx. Change-Id: I2d78440d65da7207ceb16cb28a7404249eba066a