summaryrefslogtreecommitdiff
path: root/sc/inc/tokenarray.hxx
AgeCommit message (Collapse)Author
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-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-10-23Remove ScToken from the formula::FormulaToken hierarchyStephan Bergmann
...to keep UBSan from complaining about illegal downcasts from FormulaToken to ScToken (which were practically harmless, given that ScToken did not add any data members). Change-Id: I8fdc026eec363442cc4b720b71d65c972b4a4446
2014-07-31fdo#78555: Retain formula results when moving a range of cells.Kohei Yoshida
* No need to re-compile RPN token array on reference change alone. We do that when the formula contains one or more names that have been updated. * Adjust undo code to get it to work without relying on ref undo document, which would cause the token arrays to be unnecessarily recompiled. * Whatever else need to be changed in order to pass all unit tests. Change-Id: I99e86d23320aca8900fef011da23a9d34e42751e
2014-07-13fdo#81309: Adjust references during sort.Kohei Yoshida
Change-Id: I2b98610f6b774400ecfaffe2905201c27fcab33f
2014-06-25remove whitespaceMarkus Mohrhard
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-05-21ODS load perf: transfer ownership of the ScTokenArray to save cycles.Michael Meeks
Add API to wnsure we don't end up allocating 32k bytes of tokens for each ScFormulaToken, as happens when you Add a token to a new empty ScTokenArray. Change-Id: Ib12a3065eb513243a2146ebb009fbaa650385dd9
2014-05-11fix-includes.pl: scThomas Arnhold
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-05-01fdo#78079: Re-work sort by column to get it to do the right thing.Kohei Yoshida
Also fixed reference update problem. Change-Id: I06e6115ef969a011fdd5c92d5eb1927fb7ae789b
2014-04-25fdo#76611: Wrap reference addresses at max boundaries.Kohei Yoshida
When importing shared formula tokens. Change-Id: I7e1a05a78c3a93330476516e0459cffb668e3f66
2014-04-19fixincludeguards.sh: scThomas Arnhold
sorry, huge one...
2014-04-14fdo#76294: Intern strings in AddFormulaToken() as well.Kohei Yoshida
And a whole bunch of changes needed to make that happen. Change-Id: Idd98fbc99322c0d72fb0a7848d89cb1a6abc88b6
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-25fdo#74322: Handle moving of named ranges correctly.Kohei Yoshida
But named ranges are adjusted if and only if the references are absolute. Change-Id: I6c5287b413884b045f1a798c6c6683aa17863f24
2014-03-15fdo#71491: Adjust reference during undo of drag-n-drop of cell range.Kohei Yoshida
Also with this commit, the signature of SvtListener::Notify() changes, by dropping the first argument which nobody uses. This change was necessary in order to call it directly without needing to pass any broadcaster instance. Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
2014-03-12fdo#75977: Clear sheet deleted flags for affected references when undoing.Kohei Yoshida
This will allow formula cells to restore deleted references when they get recalculated. With this change, SetDirty() that previosly took no argument has been renamed to SetAllFormulasDirty(), and it now takes one argument that stores context information. Change-Id: If0de5dc1737a2722b6d61a87644b10a4f921edc5
2014-02-15fdo#63154 Remove unused solar.h reference in scAlexandre Vicenzi
Change-Id: I160f7af515d0a42f20fbc694fff7f39567ebeec5 Reviewed-on: https://gerrit.libreoffice.org/8062 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-11-14Create string from token array directly from ScTokenArray. Still WIP.Kohei Yoshida
And make it re-entrant for thread safety. This method should not modify the internal state of the token array object. The one with ScCompiler is not re-entrant. Still some way to go. Change-Id: I06de3637341727aef0963dddfb98527f415bf7fa
2013-10-11Make the same change to the orcus interface & remove unused methods.Kohei Yoshida
Change-Id: I1263026133b694e531c0a99b16d622e1ae12db48
2013-09-07iString to OUString in some calc core codeMarkus Mohrhard
Change-Id: I25fc70cfd01f5ad25f7362157796d3ddf06139e1
2013-08-12Collect all boundaries at which to split the formula group.Kohei Yoshida
Change-Id: Ic78d7a06991b983e625b161f11fbbabce02334f3
2013-08-12Map shared formula from xls to formula groups, and share the tokens as well.Kohei Yoshida
No more mapping to range names. Change-Id: Ic43b6ef35a91fe4d6fff748ebc22969ba4e036db
2013-07-30Adjust named range references on sheet move.Kohei Yoshida
Change-Id: I3b20f79d9c2f373c93a34ccdb308c6d5c09f69e7
2013-07-30Update range names on sheet deletion.Kohei Yoshida
It works fine with live calc instance, but somehow fails in unit test. Change-Id: Ie60774b4f1f8391801e0d9358f6cca78d8e52397
2013-07-30Handle named range update on sheet insertion.Kohei Yoshida
Change-Id: I05b43bad84333ac8aeee7928898bdd90eed53c38
2013-07-30More on getting named range update to work.Kohei Yoshida
Change-Id: Id3f2ffe6d91ae43d799182b3744a839be5e1baf6
2013-07-30First cut on re-working reference update in named expressions.Kohei Yoshida
It's not perfect yet. Change-Id: Iebe7a88e419365b053765685bb769427f569070d
2013-07-30Re-implement sheet reference adjustment on sheet move.Kohei Yoshida
Change-Id: I24e93e0bbc51c7f9a1f1ea0c126a1399ace84a9e
2013-07-30Re-work reference update on sheet insertion & fix one bug on sheet deletion.Kohei Yoshida
Change-Id: I1405eb54c3c530e2c22be1f1d7728fa0d84ad447
2013-07-24Re-implement adjusting of references on move.Kohei Yoshida
Change-Id: I52a8b78ed072eb6bcd86b4f80936a869046cbc4d
2013-07-24Handle reference adjustment in response to sheet deletion.Kohei Yoshida
Change-Id: Ia6039d8a38a73d8d461743f128f01c347a2c51ad
2013-07-24Correctly update references on cell insertion/deletion.Kohei Yoshida
Change-Id: Ie7499f1f589cd384c4e2421dc81d3c1f02e4a53e
2013-07-24Add dumping capability for ScTokenArray (for debugging).Kohei Yoshida
Change-Id: Ib3f6a87936a6c00b503f5d72b16b3e4712d7d762
2013-07-24More of the same.Kohei Yoshida
Change-Id: I6a5f94723b5efb916abc88d0de9f972e142199df
2013-07-01Reduce dependency on the matrix header.Kohei Yoshida
Change-Id: Iade09d108aec78f8cbe92f9103f206d0c99fab8e
2013-03-22Let's use ScTokenArray instead of ScFormulaCell.Kohei Yoshida
Because we may move away from ScFormulaCell too. Change-Id: Iafafe3c864efa73330fb8ecbb713caa903e23db5
2013-03-19Add accessor to ScDocument for formula cell's vectorization state.Kohei Yoshida
Change-Id: I3c781764c6375dadb173bc5ab3cfb79857e2aeca
2013-03-19First cut on checking the token array on whether we could do vectorization.Kohei Yoshida
Not tested yet. Change-Id: I87f8a8595229d8d8e83526dc0334891d253cf2c7
2013-03-19Generate token array hash exactly once, when the string is tokenized.Kohei Yoshida
And CompileString() is the place to do it, to the best of my knowledge. Change-Id: I249df5d09aa288eacc2b2c7ad6e5fc947a3c225f
2013-03-19Move GetHash() from FormulaTokenArray to ScTokenArray.Kohei Yoshida
To allow access to reference tokens. Change-Id: I3e2d2653722005c04b6d26e1a4ddfce0a459ef37
2012-12-04re-base on ALv2 code. Includes:Michael Meeks
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-06-23removed unused forward declarations of classTakeshi Abe
except moving ScPostIt into source/filter/inc/xeescher.hxx Change-Id: I85fbfe88e30edce5a48a65c494ced7b2129964ff
2012-04-23only update absolute refs when copying between docs, fdo#48482Markus Mohrhard
The copy/paste formulas code is getting a bit complex. I will try to write some test cases for it.
2012-01-06correctly update absolute refs in range names if pointing to copied areaMarkus Mohrhard
2011-12-23adjust absolute refs to copied areas correctlyMarkus Mohrhard
2011-12-20improve the handling of range names while copy between different docsMarkus Mohrhard
we now behave nearly the same way as excel does
2011-12-17Copy Absolute Formulas between documents: Part IMarkus Mohrhard
Copying absolute sheet references between different documents now transforms absolute sheet references into external references if the refered range is not copied. Working: References to already saved documents work already with: -only transform reference into an external reference if range is not in the copied range -don't transform relative references Missing: handling for copying from not yet saved files idea: - add handling of external references to open documents that are not yet saved through the temporary document name - transform the url to the correct file url as soon as the source document is saved - if target document is saved first show warning message to the user and save with temporary name as file url
2011-09-20Get DB range import from xlsx to work once again.Kohei Yoshida
We need to map Excel's database ranges (or in Excel's terminology "tables") to named db ranges because they may be referenced in formula expressions. Also, Excel tables are always of the form Table*[] when used in formulas. Skip the "[]" part then the preceding token is a valid database range.
2011-08-14sal_Bool -> bool and cosmeticsEike Rathke