summaryrefslogtreecommitdiff
path: root/include/formula/token.hxx
AgeCommit message (Collapse)AuthorFilesLines
2017-11-21cache FormulaToken for doublesDennis Francis1-0/+2
Change-Id: Ic0b4dff6f03ef3f88bd150e798fa2d83dfb0f486
2017-07-31loplugin:constparams in formula,xmlhelpNoel Grandin1-1/+1
Change-Id: I1c987d991a5b292df327d1bb921099233b5531fe Reviewed-on: https://gerrit.libreoffice.org/40584 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-05-10Hold ParamClass at FormulaByteToken instead of bool, tdf#107724 prepEike Rathke1-20/+23
* change IsInForceArray() to GetInForceArray() * add IsInForceArray() to keep previous functionality Change-Id: I64c891486e548a66539646846a4691a213c783ac
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-03remove hack for non DBG_UTIL buildsJochen Nitschke1-9/+1
always use a 8bit enum for StackVar correct StackVar types for opcode opSep and opClose in unit test and test them. Change-Id: I89fac97d791eb12667ce5218ff31e798c8711e10 Reviewed-on: https://gerrit.libreoffice.org/36000 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-04-01There doesn't seem to be any reason for the svMissing = 0x70Tor Lillqvist1-1/+1
Change-Id: I9b416b28bb87599d222e60f59589cb0ec639166a Reviewed-on: https://gerrit.libreoffice.org/35979 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-03-29Add warning about intended use case of debug helperTor Lillqvist1-0/+2
Change-Id: I685509a92653112f2bbbfc970db3706b5a9bf994
2017-03-27No std::to_string in the silly C++ library we still use on AndroidTor Lillqvist1-1/+3
Change-Id: I03a3bd999e4f423f6b5422417109e789dc5b5397
2017-03-27Move StackVarEnumToString to <formula/token.hxx> and use in a SAL_INFOTor Lillqvist1-0/+32
Once StackVarEnum has been changed to a scoped enum, we should probably add an operator<< for it, too. Is 'std::string FooToString(Foo e)' a good return type, signature, and naming pattern for functions to turn enums into strings? Would return type OUString be better? Is there some consistent existing convention? For use only in SAL_INFO and friends, probably just an operator<< is enough? Change-Id: I89abbcb37ba2ab925b0a9d7fc6294d8f9ee5aebd
2017-03-21Bin noise commentTor Lillqvist1-1/+1
Change-Id: I7367d494143901c9b78349682f07cc292d1d64ea
2017-03-03Remove redundant 'inline' keywordStephan Bergmann1-8/+8
...from function definitions occurring within class definitions. Done with a rewriting Clang plugin (to be pushed later). Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8 Reviewed-on: https://gerrit.libreoffice.org/34874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-17remove unused svSubroutine from StackVarEnumNoel Grandin1-1/+0
Change-Id: I88603ce20dd152b600b2f30c81f091795b23169d Reviewed-on: https://gerrit.libreoffice.org/34359 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-17new loplugin: useuniqueptr: forms..frameworkNoel Grandin1-5/+6
Change-Id: I4300a13f455148b7156ac3f444c7102d63ae6db3 Reviewed-on: https://gerrit.libreoffice.org/33164 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-16remove anything svHybridValueCell related, it's nowhere set anymoreEike Rathke1-3/+0
Change-Id: I9887d7ca83ffc012fec1a78ef9ef537d2188a7e3
2016-09-23convert formula error codes to scoped enumNoel Grandin1-6/+7
Change-Id: I5ff214bf1ec9031e30344bc125bc99916fd11bfb Reviewed-on: https://gerrit.libreoffice.org/28897 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann1-1/+1
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-06-21tdf#42949: clean up includes in include/formula with iwyuJorenz Paragas1-7/+7
Change-Id: Ieb601d98be80aeb2239d4f0a330d90e63f1abc43 Reviewed-on: https://gerrit.libreoffice.org/26398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-08introduce FormulaTypedDoubleToken to carry type information of a doubleEike Rathke1-0/+22
Change-Id: I88b4964ca95eefa41d415ed66fc106c834a686b6
2016-05-18update unusedmethods plugin to deal with constructorsNoel Grandin1-16/+0
and fix the operator< implementations in some of the other plugins too. Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035 Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-23use FormulaToken::DeleteIfZeroRef() instead of Delete() at some placesEike Rathke1-0/+1
The array overflow detecting places that unconditionally deleted the token in case of overflow should do so only if no reference is held, i.e. the token was allocated with new and passed immediately without being assigned to a FormulaTokenRef. Just to be on the safe side. Change-Id: If2ccabec3725ac73fe82c23f51a291246847cfdb
2016-03-18Resolves: tdf#96915 implement other-sheet-local named expressionsEike Rathke1-8/+8
Change-Id: I0d62536caa6eb455473a755067abc585662cd9a5
2015-12-15Resolves: tdf#95440 SharedString are interned per document, re-internEike Rathke1-0/+3
... if literal strings are copied with formula expression tokens. Change-Id: I13526907bb6c2c605c6ed9584fa6e3f2b18623b8
2015-11-18cosmeticsEike Rathke1-8/+8
Change-Id: Ic06bef4c80426b97a2613fe296ae0aa0ee55a215
2015-11-18rename FormulaToken HasForceArray to IsInForceArrayEike Rathke1-17/+17
... to name it was it does and to distinguish from ScParameterClassification::HasForceArray(OpCode) which IS about a function having ForceArray parameters. Change-Id: I8af4e1d0353cdb5ad0a9b837ae0763dc77242734
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-49/+49
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-1/+1
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-07-30loplugin:unusedmethodsNoel Grandin1-3/+0
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-21loplugin:unusedmethods formulaNoel Grandin1-2/+0
Change-Id: I62ff278679638dda7e10c86c49b1966641418e8b Reviewed-on: https://gerrit.libreoffice.org/17223 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-02-07loplugin:deletedspecialStephan Bergmann1-3/+1
Change-Id: Id13844313c63552bec4f9ae7333a14948b386f03
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl1-4/+4
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2014-10-23Move virtual ScToken members up to FormulaTokenStephan Bergmann1-0/+21
Change-Id: I20eb3b44d540f459cd1902a7a3b6a5c867e5bc07
2014-10-22Remove unused FormulaToken::Is3DRefStephan Bergmann1-1/+0
Change-Id: Ib720bc4b3bfff8e428d14d65ff73144db82c60e0
2014-06-13resolved fdo#79957 propagate ForceArray through jump tokensEike Rathke1-2/+7
ForceArray parameters weren't propagated and enforced to array arguments on svJump tokens (FormulaJumpToken), namely IF, CHOOSE, IFERROR and IFNA. Change-Id: Icf9074f11b826655a52858d778d9a0122d207aa4
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann1-47/+47
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-06Make these non inline.Kohei Yoshida1-4/+2
Change-Id: Ib139850380b039382565e3de3666eebb5750f32d
2014-03-01Remove visual noise from includeAlexander Wilms1-2/+2
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-18Drop unnecessary #includeTakeshi Abe1-2/+0
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-03xub_StrLen and tools/string.hxx final strawNorbert Thiebaud1-2/+2
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>
2013-11-11Thread-safe way to check for presence of references in formula tokens.Kohei Yoshida1-1/+4
Change-Id: I995668d1e183dc0dae4f354889bc13053e858723
2013-11-09fdo#65108 inter-module includes <>Norbert Thiebaud1-6/+6
Change-Id: I6d9f67e26a213d14aa9114e612781fbd8c223637
2013-11-06Correct reference count type.Kohei Yoshida1-6/+6
Change-Id: Id7902c8d21d22a6d5f3740a6bd72e0c1213461e7
2013-11-06Use atomic increment and decrement for thread-safe reference count.Kohei Yoshida1-6/+13
Change-Id: I630298b1c37a6d23c1aa17aabc1c9b2dcb48608a
2013-10-23fixincludeguards.sh: include - the restThomas Arnhold1-2/+2
Change-Id: If1ee11da444a7f96f2d8668b277540da0bb4dbe9
2013-10-11Formula tokens, formula cells and formula interpreters to use shared strings.Kohei Yoshida1-20/+15
Change-Id: I5da99869fc7f61ce698180fa5daa9be9db9ac132
2013-09-07iString to OUString in some calc core codeMarkus Mohrhard1-15/+15
Change-Id: I25fc70cfd01f5ad25f7362157796d3ddf06139e1
2013-04-30Initial cut on vector formula ref tokens. Not used yet.Kohei Yoshida1-0/+2
Change-Id: I4b28c269759bc01bfc94cfdd6a1c651d03d829c7
2013-04-30Handle invariant group with single references.Kohei Yoshida1-7/+1
Change-Id: Ifbbac2b11b1023a5cf3d21204c12b9740af09aaf
2013-04-23execute move of global headersBjoern Michaelsen1-0/+428
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a