summaryrefslogtreecommitdiff
path: root/sc/source/core/data/document10.cxx
AgeCommit message (Collapse)AuthorFilesLines
2017-11-21Add "mutation guard" API for ScDocumentTor Lillqvist1-0/+2
USe by adding a ScMutationGuard object to a section of code that shouldn't be run during threaded calculation of a formula group in any of the calculation threads. There are currently several "classes" of mutation as bits of ScMutationGuardFlags, althouh I am not sure whether that will be useful, so far I use just the one same (CORE) in all cases. Currently implemented using mutexes. Possibly a simple bool field in ScDocument would be enough, the multiple flags and mutexes might be over-complicating it? Maybe I misunderstood what I want. Add such mutation guards for some fields of ScDocument. Change-Id: If2a8223c49d36143f2984e0449798271f2b6440d
2017-10-23loplugin:includeform: scStephan Bergmann1-5/+5
Change-Id: I2ed763e0584a188032c80fde60890de3c6985cbd
2017-09-05Prefix one more member of ScDocument: xPoolHelperTor Lillqvist1-1/+1
Change-Id: Id1a216e909d5c0a6bafa80d1e40613fb38ceb1ef
2017-08-22loplugin:constparam in sc part1Noel Grandin1-1/+1
Change-Id: I82fba7ebb3b4f018721642c96bbfa615c6a382c3 Reviewed-on: https://gerrit.libreoffice.org/41419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-16add a way to restore from our new cache formatMarkus Mohrhard1-0/+9
Change-Id: I6eeaaf9ca05bed2a908143ae5f4daab6e098799c Reviewed-on: https://gerrit.libreoffice.org/41199 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-16introduce a way to write a simple data representation to a streamMarkus Mohrhard1-0/+9
The format used is column orientated and allows quick import and export of the table content. This will be used for the external data to cache the results of each transformation step in the UI. Change-Id: I6e1bfd3b3384cbfadeb98fb995dfd0b03d5e6eb6 Reviewed-on: https://gerrit.libreoffice.org/41198 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-07-31add initial file format representation for data import featureMarkus Mohrhard1-0/+9
Change-Id: I51143ecfe4eb1584f13bd1590f927743de8fa91e Reviewed-on: https://gerrit.libreoffice.org/40572 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-07-03C++11 remove std::unary_function bases from functorsJochen Nitschke1-1/+1
std::unary_function is deprecated since C++11 and removed in C++17 90% done with regexp magic. removed obsolete <functional> includes. The std::unary_function base class was used in 3 places: * chart2/source/tools/DataSeriesHelper.cxx: lcl_MatchesRole is used in a std::not1 function helper who uses the members return_type and argument_type. - replace deprecated std::not1 with a lambda * chart2/source/tools/ModifyListenerHelper.cxx: lcl_weakReferenceToSame used the argument_type member in the operator() parameter. - inline the parameter type. * xmloff/source/chart/SchXMLExport.cxx: lcl_SequenceToMapElement used result_type and argument_type in operator(). - inline the types Also fix compile error with gcc about finding std::for_each. Change-Id: I073673beb01410c3108e7d0346d9e7d6b9ad2e2f Reviewed-on: https://gerrit.libreoffice.org/39358 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2017-06-07Take new FormulaTokenArrayPlainIterator into use in a couple more placesTor Lillqvist1-3/+6
Change-Id: Iaccbc7927943948136a56ba17f6bcff3a6971f31
2017-05-24tdf#107945: properly iterate over mtv during pivot cache loading.Kohei Yoshida1-0/+23
This reduces the total time required for populating the pivot cache by ~60%. Change-Id: I6a8511959c20231a8a5dbd0b0a9a3d0930a1fa0c Reviewed-on: https://gerrit.libreoffice.org/37971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2017-05-17tdf#43535: support additional sheet protection options.Kohei Yoshida1-0/+23
New options are: * insert columns. * insert rows. * delete columns. * delete rows. Change-Id: I076b0d01bee0fff0623e2f1137c09938a6110939 Reviewed-on: https://gerrit.libreoffice.org/37695 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2017-05-03tdf#107255: detect whether the range has only one data cell.Kohei Yoshida1-0/+15
Change-Id: I030961d9d38b092ffdc966baa10decae0c2d070d Reviewed-on: https://gerrit.libreoffice.org/37178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2017-04-25tools: svstream.hxx needs only errcode.hxx & not errinf.hxxChris Sherlock1-0/+1
Change-Id: Ia28e35ae5af4f601e9a586a3deffbcd61702b0ca Reviewed-on: https://gerrit.libreoffice.org/36896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2017-04-18only handling copy&paste needed, cut&paste bailed out, tdf#105245 follow-upEike Rathke1-13/+3
Change-Id: I946d9f09e7571d347111ad66326ab375d153e298
2017-04-11call UpdateReference also for single cell copying, tdf#105245Markus Mohrhard1-0/+19
Change-Id: I5fed22d2835466cbd07f8dbd917e9f881b7b2832 Reviewed-on: https://gerrit.libreoffice.org/36393 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-10-19sc-perf: StartAllListeners: bail out early in cliboard or undo documentEike Rathke1-0/+3
... and do not attempt to execute the overhead for all columns in the range just to do nothing. Change-Id: I88d26895cf641e8c71d7ccdf5534de8008070e61
2016-09-25tdf#91312, don't forget to delete the old cond format indicesMarkus Mohrhard1-9/+0
Change-Id: Ia3267bd52d2905cb332daa11b0e7c93251f43e55 Reviewed-on: https://gerrit.libreoffice.org/29260 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-09-19tdf#100393, handle copying one cell to multiple cols with cond formatMarkus Mohrhard1-2/+5
The same fix has been applied for rows already. Change-Id: I77300680a657fb874d07641fbae928eb6c210acd
2016-07-26Resolves: tdf#87474 handle renaming of named expressions/ranges in formulasEike Rathke1-0/+48
Change-Id: If82b62505624c3c259371fa37de1994a94bbceb5
2016-05-30we already have pClipDocEike Rathke1-1/+1
Change-Id: I0485f15b6771d10d4b077f5034db77e4c13ef877
2016-05-30actually multiple destination sheets are handled, tdf#97158 follow-upEike Rathke1-4/+3
... so ScMarkData doesn't need to be passed. Which it wasn't anyway because the destination sheet span is part of CopyFromClipContext. Change-Id: I0addd370d96ab78b22ed957081a1212fc70419a1
2016-05-30Resolves: tdf#97158 CopyOneCellFromClip() does not handle multiple sheetsEike Rathke1-1/+6
... so check that and bail out to let the remainder of CopyFromClip() handle it. Change-Id: I9d139de905fd108ae41fed79a38860058525272c
2016-05-07clang-tidy modernize-loop-convert in scNoel Grandin1-2/+1
Change-Id: I620028d69b11ea0469efd7b02ac7bbc7edab1066 Reviewed-on: https://gerrit.libreoffice.org/24690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-04-30Resolves: tdf#76523 copy used names or pointing to sheet to other documentEike Rathke1-2/+5
Change-Id: I767ed1f212c257741fd982e8bbd0882a29d439c1
2016-04-28move to ScDocument::CopyAdjustRangeName() and namespaceEike Rathke1-0/+292
Change-Id: I1ec3c8cc1b8d3cb899d49192295b14ffac02849a
2016-04-28move to ScDocument::FindRangeNamesReferencingSheet()Eike Rathke1-0/+64
Change-Id: I8ddd83eca3eaf0bd04c8c73a16329517ec3c21b3
2016-04-19const as const can, tdf#99322 follow-upEike Rathke1-2/+2
Change-Id: I8c9714e6c6b15fbb1068b79d2efae48927a1fa77
2016-04-19call StartNeededListeners() only on affected columns, tdf#99322 follow-upEike Rathke1-0/+10
Iterating over the entire document is an unnecessary performancce penalty if the set of affected columns is already known. Change-Id: I84598066f878ca4615d6a5e1d6c70ebaa686e446
2016-02-15tdf#94858, avoid O(n^2) algorithm during outline importMarkus Mohrhard1-0/+10
The old code set called the outline visibility code for each row. Now we are just calling it once at the end of the import. Change-Id: Ie19f8bd538495cb50a7618156aed8de832885c2a Reviewed-on: https://gerrit.libreoffice.org/22239 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-03tdf#89140:Calc row paste doesn't keep row heightArul1-1/+1
Change-Id: Ibf9a5674711cf496706c4d3ac9d3133016aea39d Reviewed-on: https://gerrit.libreoffice.org/21665 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-01-11loplugin:privatebase: Publicly derive from binary_/unary_functionStephan Bergmann1-1/+1
Somewhat arbitrarily prefer public over private derivation; ultimately, derivation from those deprecated (C++11)/removed (C++17) classes should be removed, anyway. Change-Id: I5ed24427d37586e72f8c16509cf5002a54af73f1
2015-11-13cppcheck: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: Ife26f55c28c4631aec4ba4105225bfca72da8bff
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
2015-10-26convert InsertDeleteFlags to use o3tl::typed_flagsNoel Grandin1-2/+2
Change-Id: I3f6a97195d3364b2a0964f62f11e9c0de9493d64
2015-09-18boost->stdCaolán McNamara1-3/+3
Change-Id: I7f3bb094f116103c1146a7d60e3af94c0b37d9ea Reviewed-on: https://gerrit.libreoffice.org/18677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-17revert for mac and win unit case crashes after boost->stdCaolán McNamara1-3/+3
Change-Id: I82c7084f203a834c2d42f9527705288e6036019b
2015-09-17boost->stdCaolán McNamara1-3/+3
Change-Id: I1e6a7fd66f90e6acd803c6cd464f1d73252f7bcb
2015-07-22loplugin:unusedmethods scripting,scNoel Grandin1-16/+0
Change-Id: I0016aefce1aad3a89bd23dcec6fbab58a7c844d7 Reviewed-on: https://gerrit.libreoffice.org/17263 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-02-14related tdf#89004 move to std:set instead of std::vectorUrsache Vladimir1-6/+4
Conflicts: sc/source/core/data/document10.cxx sw/source/core/doc/docfmt.cxx Change-Id: I1312f476607ea3a78b162a7e59323b0a142f6629
2015-02-14tdf#89004 improve performance of document data collectionUrsache Vladimir1-42/+16
Change-Id: Ie74495745b48d721c7dda0b447fc59066c869874
2015-01-15fdo#88398: Handle group listeners correctly when splitting formula group.Kohei Yoshida1-0/+10
It's basically the same thing we do in ScDocument::DeleteArea(), implemented in ScDocument::SetValue() and SetString(). Change-Id: Ifcae31aaef0e00ed8659aa5e2b9b8e206dc1a099
2014-12-10Deteremine the script type of source cell during paste replication.Kohei Yoshida1-1/+4
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-11-30we need to copy the condition format cell for cell, fdo#86253Markus Mohrhard1-2/+5
Change-Id: Ic090e1b9d13780e7e895a85901d3329cc5703688
2014-11-25Adjust ref undo to ensure group area listeners are used.Kohei Yoshida1-0/+34
When undoing row deletion (and possibly other similar undo's). And write test for it. Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33
2014-11-21Use group area listeners when deleting rows.Kohei Yoshida1-0/+17
Change-Id: I9ceb1cabf448349e087e4d5c4c2b1a75af91dd75
2014-11-21Handle group area listeners correctly when deleting cells.Kohei Yoshida1-0/+22
Change-Id: Ic37084ed670f53e0354056f7bef54229971dd7c2
2014-11-20Adjust InsertRow() for group area listeners.Kohei Yoshida1-0/+29
Change-Id: I813b45d015eb1ae8dc7bd1242152ef734b5fe08c
2014-11-18Avoid unnecessary broadcasting when deleting cells prior to pasting.Kohei Yoshida1-2/+3
Change-Id: Id224fd6fdb804350e7e00634db802e80090ae6d7
2014-11-18Move this code to the context class.Kohei Yoshida1-117/+1
Change-Id: I387dba24993d418a2b3923eac992ad2506229704
2014-11-18Speed up pasting of single row onto multiple destination rows.Kohei Yoshida1-103/+120
This is an extension of the earlier paste optimization of a single cell across multiple destination cells. Change-Id: I3a60300d3d0e11420d997bea8f7f540e948f56cc