summaryrefslogtreecommitdiff
path: root/sc/inc/compiler.hxx
AgeCommit message (Collapse)Author
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-07-22loplugin:unusedmethods scripting,scNoel Grandin
Change-Id: I0016aefce1aad3a89bd23dcec6fbab58a7c844d7 Reviewed-on: https://gerrit.libreoffice.org/17263 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-23in OOXML save references of named expressions with col,row=0,0 base positionEike Rathke
Saving relative references of named expressions to OOXML never worked, upon reload they pointed to a different position offset by the value of the original base position. This at least saves positive relative references correctly, while generating #REF! for negative offsets which is slightly better than having them point to a wrong location and silently calculate different values.. Also, this is a prerequisite for TableRef ThisRow references in named expressions to be saved correctly in A1 notation, which results in a relative row 0 value. Change-Id: I3734f910794ceab4b9224b214ad11c64d1d18e67
2015-05-07remove unused code; bMapDupToInternal in struct AddInMapWinfried Donkers
is not used apart from getting a value. Conflicts: sc/source/core/tool/odffmap.cxx Change-Id: I26e942f6357970c6d9de27b5d5cf00b451193732 Reviewed-on: https://gerrit.libreoffice.org/15658 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-04-18const all CreateString... FormulaToken*Eike Rathke
Change-Id: I0e0f064357543e5dc86b178ce30ee005e5483e04
2015-04-09TableRef: correct GetToken() logicEike Rathke
Ensure that only desired tokens are obtained and the resulting new token is actually the current one upon return. Change-Id: I624c324b861d8658accf3285cad2cfc5a598b450
2015-04-09TableRef: lookup column specifierEike Rathke
Change-Id: I73109e5a862b2f4bc456dff512bddf5d23586a6d
2015-03-12TableRef: parse item specifiersEike Rathke
Change-Id: If1419844544be08fa14b6c78c755abba35fff353
2015-03-11add TableRef stackEike Rathke
Change-Id: If781e6ab13eb5ad175352e330379776d6ca4fcd8
2015-03-05add Item enum to ScTableRefTokenEike Rathke
Change-Id: Ie35d717fd55e6bbde958d3f2be4dac5f489467f9
2015-03-05use ScTableRefToken in ScRawToken::CreateToken()Eike Rathke
Change-Id: I895f142667a593bc5fc4f33f2417cbee991e503a
2015-03-05add HandleTableRef()Eike Rathke
Change-Id: I95e80bfa11177e1a52f3215d27448f4642091bad
2015-03-05rename confusing HandleSingleRef() to more appropriate HandleColRowName()Eike Rathke
Change-Id: Ib2e6d5cd9863ac1f9b0ba9b192f5d17d489ed19f
2015-02-13tdf#89330 preserve file name case in an unresolvable external named rangeJan Kantert
Change-Id: Ib8728a4a9c793b162de07a0cef66e242879f2aa1 Reviewed-on: https://gerrit.libreoffice.org/14474 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-11-16callcatcher: update unused codeCaolán McNamara
pleasing cleanup of whacky ScRawToken::sbyteOffset, etc. Change-Id: I5ad97f8dab7c5dc9d5f0286bf606b619126c22c9
2014-11-15remove unused code in ScRawTokenNoel Grandin
Change-Id: I8f644ac7f7bbdd2c9cb6f5a41709e41efa737885 Reviewed-on: https://gerrit.libreoffice.org/12423 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini
Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-08-11write OOXML externalReferences, externalLinks, fdo#45286Eike Rathke
This for the first time writes external references (hopefully) correctly and adds the necessary relationship streams and the externalLink streams with sheetData. At least Excel 2013 loaded the result without complaining, so do we. Change-Id: I3d615490a60c5420ae13c0bfc6297642d86a07b9
2014-05-21Avoid unnecessary cloning of ScRawToken during token check.Kohei Yoshida
Change-Id: Ia980054437394ef48f7df655411f81d20b9cfa32
2014-05-21ODS load perf: 7% of the time re-creating sheet name strings.Michael Meeks
No need to create cached versions of stringified sheet tokens for a given grammar at great for every formula that we compile; defer until use. Is this a large cost on save ? Change-Id: I8058ed564dbdc00ff45c02cb483c1a20a48af272
2014-05-14Update the method comment and add assertion per what the comment says.Kohei Yoshida
Change-Id: I751e33a8bba732e3b7935fc41385ea5e1f8c8704
2014-05-14Use "stop on error" concept rather than "ignore error if true".Kohei Yoshida
Just to keep the pattern of "true" -> "action", "false" -> "no action". Change-Id: I6303bc779cd7048eef2fdc3c2abba8be8f15da6d
2014-05-11fix-includes.pl: scThomas Arnhold
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-04-19fixincludeguards.sh: scThomas Arnhold
sorry, huge one...
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-02-24fdo#75304: Set external reference info to ScCompiler.Kohei Yoshida
And remove this excessive const fetish which was unfortunately necessary to get this to compile. Setting the container const is good enough. Change-Id: I2c6cc55a88643a68e065c4518cdf069c247f4f02
2014-02-04Use CompileFormulaContext in CompileDBFormula() and CalcAfterLoad().Kohei Yoshida
Also make some adjustment in order to handle formula cell's "temp grammar" correctly. Change-Id: I6fdd5c67bb95e4de90ea71db624c9610c1e2febf
2014-02-04More places to cover pre-compiled sheet names.Kohei Yoshida
Change-Id: I9dead89e990297abee185a8a64b0d2f4a86f5c70
2014-02-04Pre-compile all compiler-ready sheet names to avoid doing it repeatedly.Kohei Yoshida
This reduces the lag after updating range names especially with a large number of range names. Change-Id: Idbfa3b6447b693a566192828e7137b2aeaa0d1f5
2014-02-03xub_StrLen and tools/string.hxx final strawNorbert Thiebaud
Thre is still some 0xffff limit left and possibly some less than gracefully handled overflow/error cases Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638 Reviewed-on: https://gerrit.libreoffice.org/7787 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-01-17Avoid some global statics that drag in lots of code in the static linking caseTor Lillqvist
When doing static linking, i.e. when building the single executable for an iOS app, or the single DSO for an Android app, we list all our libraries (which all are static archives) on the linker command line. Static initializers in any library always get linked in, so it is a good idea to avoid such in the cases where they drag in a large amount of code. Which was the case here. Change-Id: Idef9aec1c10686c86f517ad10cf540a313d9c829
2013-11-18Avoid passing the external ref manager pointer to make it re-entrant.Kohei Yoshida
Change-Id: I67a0df1dcd0635ea82bfc397041a9c43dedbe75d
2013-11-18Try not to pass ScCompiler as a parameter.Kohei Yoshida
Change-Id: I7ef58f0455f11a3eb2ac88ec76e9436fb48a74e2
2013-11-18EncodeUrlMode always set to "by grammer". Remove it.Kohei Yoshida
Change-Id: I7de308bbdaacc1fc60a142497acc2301c080e5dc
2013-11-18Let's have makeRefStr() take individual parameters again.Kohei Yoshida
And remove use of TokenStringContext from ScCompiler. Change-Id: Ib0636e2437a64edd372623a7176dab462eed831b
2013-11-18Have makeRefStr() accept a context object rather than individual params.Kohei Yoshida
Change-Id: Id52e02aa29d85d207420c80a95ada2f8487f165f
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-11-14Identify methods that don't modify internal state and mark them const.Kohei Yoshida
Change-Id: Ie63d93d51640bfb80dc02bb226d742c2f9be96d8
2013-11-11convert STRING_NOTFOUND in sc moduleNoel Grandin
ScGlobal::FindUnquoted - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 - remove last two parameters because noone was using them ScCompiler::GetDocTabPos - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 inputhdl.cxx/lcl_MatchParenthesis - return -1 instead of STRING_NOTFOUND - change return type from xub_StrLen to sal_Int32 - make function static, no-one outside this module is using it Change-Id: I141ab082db180ff2da5a7ca6813cd3607b9ea7f7
2013-11-06Allow non-pooled instance of SvNumberFormatter inside ScCompiler.Kohei Yoshida
Change-Id: I645079254621c2f2684a69116b094e37e46f46f4
2013-11-06Check all call sites of CompileString() and make sure we don't leak.Kohei Yoshida
We *were* leaking quite a bit. Change-Id: I3f53eff22beab27b34a055a4452311f2e2f771db
2013-10-11Fix VLOOKUP calculation when the matching value is literal string.Kohei Yoshida
ScRawToken needed to store a shared string value rather than the normal unicode string array. This fixes a previously failed unit test. Change-Id: I87164c018ace0761c40d1493f44fe25909a4499c
2013-10-08convert sc/inc/compiler.hxx from String to OUStringNoel Grandin
Change-Id: If224594378a7ef79a7536e37022d0832e65f1d65
2013-10-03de-GetBuffer calcCaolán McNamara
Change-Id: I6bb013cc32d5b363dd08738543b1fb834d39f516
2013-09-30Related: fdo#38838 remove UniString::SearchAsciiCaolán McNamara
Change-Id: Icb7850aaabe59f96ea26a665a8d25617b2741d68
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-17convert the resust of include/formula/FormulaCompiler.hxx to OUStringNoel Grandin
Change-Id: I7cbc371e90869c481a23450722a1a025b110b235
2013-09-17convert aCorrectedFormula in formula::FormulaCompiler to OUStringNoel Grandin
Change-Id: I048ec33effc33e94943f5110d6a9a0937a1dfdfe
2013-09-07iString to OUString in some calc core codeMarkus Mohrhard
Change-Id: I25fc70cfd01f5ad25f7362157796d3ddf06139e1