summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/compiler.cxx
AgeCommit message (Collapse)Author
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: allow column specifier without itemEike Rathke
Change-Id: I1263f190d769254949701b3a257b2af5d6ea61a2
2015-04-09TableRef: lookup column specifierEike Rathke
Change-Id: I73109e5a862b2f4bc456dff512bddf5d23586a6d
2015-04-08TableRef: add pointers to documentationEike Rathke
Change-Id: I248ac1d116ffabc8346fd000c2ae4b0b9c6bd89b
2015-04-08TableRef: table name without items references data onlyEike Rathke
Change-Id: I2d4e534444678ddf8243db7b3fb6fe66af9fa24f
2015-04-08TableRef: match column header rows against DBrange first rowEike Rathke
Change-Id: I10f7806288f817e599876f95af4998ff6f539fc3
2015-04-08TableRef: handle column rangeEike Rathke
Change-Id: Iab87cc3fb2b21b53303e46a227f3a1ae35a3ab6d
2015-04-08TableRef: both column range rows must be table range top rowEike Rathke
Change-Id: I82fcb95c972defde4a854d4c4cce80e6e561bc92
2015-04-08TableRef: push ref only valid after openEike Rathke
Change-Id: I3ea00ddec1a740cbcff9eb22727b1f8ce32bb373
2015-04-08TableRef: limit to specified columnsEike Rathke
Change-Id: I389a0640d6ffefa1b98a9feff86c73775a7771dc
2015-04-08TableRef: keywords come with extra brackets eachEike Rathke
Change-Id: Ie12264c02d178be9bc5752e7ea20b4feff409e68
2015-04-08TableRef: simplify logic a littleEike Rathke
The #All keyword can be prefixing a column range anyway, so needs to be treated like all other keywords. Change-Id: Ic64a5caeff1c6b2d116b21c0c855c7207d649a8d
2015-04-08TableRef: set errNoRef is there is no resulting rangeEike Rathke
Change-Id: I19ec176abf3291b2d4ad5baff06f66518680b378
2015-04-08TableRef: handle #ThisRowEike Rathke
Change-Id: I5009df42fcb640ae6e2808900d7d42bd6dcc8677
2015-04-07TableRef: implement more keyword casesEike Rathke
Change-Id: Ib37bfb1b8721d3f6729ce5c312863ffa6a1f76d4
2015-04-07Remove dead INetProtocol::VimStephan Bergmann
...which removes the need to abstract over the standard URI '%' escape prefix vs. the silly vim '=' special case invention. Change-Id: I54a52dd912c3aafc38275a0ac2466a6daeec328f
2015-03-26TableRef: generate token for #DataEike Rathke
Change-Id: I06d4789b92d9f6567dd87c8d3cb6186538269663
2015-03-26TableRef: generate tokens for #Headers and #TotalsEike Rathke
Change-Id: Ib28bae06022d151bc108ebb3062efe86cc3b8bb9
2015-03-24tdf#40835 add ODFF function FDISTWinfried Donkers
and clean up F-Distribution function names. Change-Id: I8666659269121b3ea32e8179b42e3497aa86754f Reviewed-on: https://gerrit.libreoffice.org/14657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-03-13add items to ScTableRefTokenEike Rathke
Change-Id: I23ddec273f7d3df0d5342b73c54ae411b9ef3782
2015-03-13TableRef: scan whatever (translated) item name up to the next ']' closerEike Rathke
Change-Id: Ifd18e4dd369a0fbe98da7a7b972c012f5269af3e
2015-03-12TableRef: parse away an optional #All in entire tableEike Rathke
Change-Id: Ibe7c67b608ab97c83fcac6adf95d67e00a74fd72
2015-03-12TableRef: parse item specifiersEike Rathke
Change-Id: If1419844544be08fa14b6c78c755abba35fff353
2015-03-12speed-up shortcut for non-alnum one character operators and separatorsEike Rathke
Change-Id: I57281f8e98a7427a562ede1d2dcd9ed4624f33e1
2015-03-12init and compare opcode hashmap with uppercase symbolsEike Rathke
This is necessary now there are TableRef items like #All that need to be matched case insensitive but displayed preserving the case as coded / translated. As a side effect, OOXML functions with _xlfn. prefix are now matched in case that prefix was uppercase. Change-Id: Ie14700d13c40c3e39e6d6aff560bcdfe23707196
2015-03-11TableRef: need to distinguish between entire table and All specifiedEike Rathke
Change-Id: I507b6dfc0ce1a7b0f28142b05e15834ad6e6ac80
2015-03-11add TableRef stackEike Rathke
Change-Id: If781e6ab13eb5ad175352e330379776d6ca4fcd8
2015-03-09CID#1287400: Control flow issues (MISSING_BREAK)Eike Rathke
Change-Id: I74da9d277d21e01ffb316e6885470a1a3cbe0cf2
2015-03-07first stab at handling table[] all rangeEike Rathke
Change-Id: I608cf04cf4b0b991f4a45a868566faeae5be77c9
2015-03-07clarify this visuallyEike Rathke
Change-Id: I04c1a00903cc0c057fc436e391f93b1e05eed8a1
2015-03-05ScCompiler::HandleTableRef() implement ALL caseEike Rathke
In general it should work like this.. Change-Id: Ic45ca6138c1b252ce9d216ce61c7129c055342ef
2015-03-05don't count table ref item separator as parameter separatorEike Rathke
... similar to ocArrayOpen,ocArrayClose Change-Id: I10b4cd2f74167cc57ef7a2ed96e0e98f0cd86805
2015-03-05add '[' and ']' to conventions' char flags where appropriateEike Rathke
Change-Id: Ic82ccfcba08ce276eac08609de215ba8edf8e813
2015-03-05add HandleTableRef()Eike Rathke
Change-Id: I95e80bfa11177e1a52f3215d27448f4642091bad
2015-03-05handle ocTableRef same as ocDBAreaEike Rathke
Change-Id: Id64556850ef0d44db1ff4dedb41e0e1cb9735b76
2015-03-05rename confusing HandleSingleRef() to more appropriate HandleColRowName()Eike Rathke
Change-Id: Ib2e6d5cd9863ac1f9b0ba9b192f5d17d489ed19f
2015-02-25remove NUMBERFORMAT_ constantsNoel Grandin
.. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
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>
2015-01-20change assert() to SAL_WARN_IF()Eike Rathke
It's a valid condition in some cases. Change-Id: I9c9bbcf0b506a88f89e4a420dd544e4bc6502e58
2015-01-14fdo#39468 Translate German Comments - replace '//!' with '//TODO:'Christian M. Heller
It seems that most comments starting with '//!' were intended as FIXMEs. This replaces gerrit 12241. Conflicts: sc/source/core/tool/token.cxx sc/source/filter/excel/xlpivot.cxx Change-Id: I6ed06b32c70cc854a896dbbc386565e6fbfa9b28 Reviewed-on: https://gerrit.libreoffice.org/12361 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-12fdo#85818: rename ZGZ to RRILaurent Charrière
Change-Id: Ifeb513eba762f881dd4ea7cd7fc531fe5028106d Reviewed-on: https://gerrit.libreoffice.org/13831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-09do not drop entire external reference, fdo#85617 relatedEike Rathke
If there are no matching tab names for a FileId, preserve at least the known reference parts. In case of 2D references the sheet name is in the token if for example read from .xlsx, only for 3D references the second sheet name would be needed. The underlying makeExternalRefStr() and its subroutines handle the missing tabname elements gracefully. Still this situation is worth an assertion.
2014-12-27remove copy&paste codeMarkus Mohrhard
Change-Id: I5710856fdb9fb91573de89eeb5a29d3d106ad7a6
2014-12-27that method is the same as in the base classMarkus Mohrhard
Change-Id: I8cb6f59795d9461c0e02ab70d7edd60af1410c1f
2014-12-27return after finding the referenceMarkus Mohrhard
Change-Id: Ia22b97b0a45d8d840095737638c2ccf68373e27a
2014-12-27handle index based external refs in formulas in ooxml import, fdo#85617Markus Mohrhard
Change-Id: Ie4f43f041f5d614b9c2826c74574c854af05c266
2014-12-19The value of the nRefs field is not used anywhereTor Lillqvist
Change-Id: I9116611d04846af7f00cb366e9174fd99e741d5c
2014-12-18sc: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ifc00b2045de0d356e175733b0f03ab0c90083039
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-15sc: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: Ib4c0df8d7637bff7d7a45d24482fff4342169fae