summaryrefslogtreecommitdiffstats
path: root/formula
Commit message (Collapse)AuthorAgeFilesLines
* tdf#105931 Add function ROUNDSIG to Calc.Winfried Donkers2017-02-201-0/+6
| | | | | | | | | | SIGDIGITS rounds a value to a determined number of significant digits. Change-Id: I5dbfb638bf17ca109f9a14b3588d6d6c103edfa4 Reviewed-on: https://gerrit.libreoffice.org/34148 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* convert FormulaCompiler::SeparatorType to scoped enumNoel Grandin2017-02-171-24/+9
| | | | | | | | | and drop unused COMMA_BASE enumerator Change-Id: I5f35ba7453d5ca613ebd65d0853c7caaa210f3de Reviewed-on: https://gerrit.libreoffice.org/34357 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* replace localresource of strings and keys with StringArrayCaolán McNamara2017-02-092-3831/+2628
| | | | Change-Id: I369de4213c4cb38013b984d1c2784ad68e25793c
* Remove dynamic exception specificationsStephan Bergmann2017-01-261-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* loplugin: unnecessary destructor forms..idlcNoel Grandin2017-01-252-8/+0
| | | | | | | Change-Id: I765e0fa61f8134a60e5ea24452c6bbcb3fa8b054 Reviewed-on: https://gerrit.libreoffice.org/33492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Change all Idle* LINKs to be Timer*Jan-Marek Glogowski2017-01-232-10/+10
| | | | | | | | | | | | | | | | | | | | | Seem UBSAN doesn't like my forced reinterpret_cast to set the Idles Link in the Timer class. Now there are two possible solution: 1. convert all (DECL|IMPL).*_LINK call sites to use a Timer* or 2. split the inheritance of Idle from Timer again to maintain different Link<>s and move all common code into a TimerBase. While the 1st is more correct, the 2nd has a better indicator for Idles. This implements the first solution. And while at it, this also converts all call sites of SetTimeoutHdl and SetIdleHdl to SetInvokeHandler and gets rid of some local Link objects, which are just passed to the SetInvokeHandler call. It also introduces ClearInvokeHandler() and replaces the respective call sites of SetInvokeHandler( Link<Timer *, void>() ). Change-Id: I40c4167b1493997b7f136add4dad2f4ff5504b69
* Refactor Scheduler to add Task classJan-Marek Glogowski2017-01-172-3/+3
| | | | | | | | Moves all the "task-specific" stuff into a Task class and just keeps the "real" static Scheduler functions in the original Scheduler class. Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
* new loplugin: useuniqueptr: forms..frameworkNoel Grandin2017-01-172-8/+5
| | | | | | | 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>
* e*, f*: load BitmapEx resources instead of Image onesCaolán McNamara2017-01-165-30/+24
| | | | Change-Id: I3383e222829042557a8fd9f575049c47aeddeb09
* check length of string as this can be called untokenized, tdf#105024 relatedEike Rathke2017-01-061-2/+3
| | | | | | i.e. during import of ODFF Change-Id: I7f5419d393f89d8a84efca7444e8dde3a3e9199f
* check "#ERRxxx!" constants for accepted error values, tdf#105024 follow-upEike Rathke2017-01-051-1/+1
| | | | Change-Id: I9a11695710baa2f4e022c8e07f01b962cfabe2e7
* Resolves: tdf#105024 generate and parse detailed "#ERRxxx!" error constantsEike Rathke2017-01-051-1/+20
| | | | Change-Id: I4e5d98cdbbc2f3e7746cd3892f70151376bc5808
* loplugin:unnecessaryoverrideStephan Bergmann2016-12-061-5/+0
| | | | Change-Id: Iac074bd6f59d2fc890459b45801d0a6143c3eb9e
* Rewrite some (trivial) assignments inside if/while conditions: formulaStephan Bergmann2016-11-291-4/+12
| | | | Change-Id: I28d41341607abae82a3bc5d9cacdb70e7431be18
* vcl: rename Window::Notify to EventNotifyMichael Stahl2016-11-241-1/+1
| | | | | | | | | There is annoying overloading between Window::Notify and SfxListener::Notify, and the Window one has apparently fewer implementations, so rename that and remove lots of disambiguating "using Notify" in multiply inheriting classes. Change-Id: I8b597fd9e70cf2e7103b9dfa7cc666e79e7aff49
* add missing deps on ui filesDavid Tardon2016-11-211-0/+4
| | | | Change-Id: I28bb2a33c02d8eadced584d3d3f2b62b2e847324
* gbuild allow unitest to run once per lang in WITH_LANG_LISTNorbert Thiebaud2016-11-201-1/+1
| | | | | | | | | | | | | | | this is motivated by the new screenshot feature the initial proposed solution involved running make screenshot once per lang which took ~6 hours for --with-lang=ALL on tb68 a reasonnably big windows slavebot. with this patch, one can run make screenshot just once and get all the screenshot the elapsed time is 36 inutes on the same box/same config a 10x improvement. Change-Id: I4339caebf915c118aa455de2a7e56e1a4e413939 Reviewed-on: https://gerrit.libreoffice.org/30970 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Fix typosSamuel Mehrbrodt2016-11-151-1/+1
| | | | | | | Change-Id: I3e38b1d445c368c28e807202b94c603bd2b2c672 Reviewed-on: https://gerrit.libreoffice.org/30872 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* loplugin:countusersofdefaultparams in editeng..rscNoel Grandin2016-11-111-1/+1
| | | | Change-Id: I8a8d13faf228cbc934ae21d6763d92d370eb42ec
* loplugin fixes here, tooTor Lillqvist2016-11-101-8/+1
| | | | Change-Id: I32cf90d524f8dd9fb454d4145d314b748ac0b281
* use-after-free fix here, tooTor Lillqvist2016-11-101-2/+2
| | | | Change-Id: I228b6367abadfc25c85fdb6821faebc7e4e8dda8
* TyposTor Lillqvist2016-11-101-1/+1
| | | | Change-Id: I87a63c4b1a13186efa5d0bd807605092197082e0
* loplugin:expandablemethods in forms..formulaNoel Grandin2016-11-084-15/+2
| | | | | | | Change-Id: Idc948ad06913def28cb642c3a4e5ea9322b9fb3b Reviewed-on: https://gerrit.libreoffice.org/30688 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:unnecessaryvirtual in frameworkNoel Grandin2016-11-081-2/+2
| | | | | | | Change-Id: I893bf955e45e661e3ec440dbd530fca22931c23b Reviewed-on: https://gerrit.libreoffice.org/30666 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:unusedmethods unused return typesNoel Grandin2016-11-031-22/+21
| | | | | | | Change-Id: I88204bca60dd1e299b040c52bc87e500cbfaa930 Reviewed-on: https://gerrit.libreoffice.org/30519 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* -Werror,-Wunused-private-fieldStephan Bergmann2016-10-301-1/+0
| | | | Change-Id: I695b3709c2b53f62773dc390b89966061c7b0ae9
* display matching search per selected category, tdf#67974 follow-upEike Rathke2016-10-291-12/+30
| | | | | | | Also select category All while typing in Search, and display the LRU list independently. Change-Id: I8a734cc202e017d3a10d8a6f89b1814073a77c81
* filter hidden functions also in search, tdf#67974 follow-upEike Rathke2016-10-291-2/+6
| | | | Change-Id: Iaa23759e01d8f86bfc5c0bbd8b333cd331b7b8cd
* tdf#67974 UI: Add a search box in function wizard in SpreadsheetAbhilash Singh2016-10-293-30/+100
| | | | | | | | Change-Id: Idd243824a25ba99b2163f094c531dad7fe1153c8 Reviewed-on: https://gerrit.libreoffice.org/30118 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* tdf#103088, improve interoperability with Excel for LOGNORMDIST().Winfried Donkers2016-10-261-4/+20
| | | | | | | | Change-Id: I5f4ccbb54b212247a3ff8b13ff012c930d18a86c Reviewed-on: https://gerrit.libreoffice.org/30020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* no Edit controls loaded from .src nowCaolán McNamara2016-10-251-11/+0
| | | | Change-Id: I42c7377c101c642ea39028e05e4ffd58fc7435d7
* tdf#103186, make LOGINV ODFF1.2 compliant.Winfried Donkers2016-10-241-0/+4
| | | | | | | | | (Also retain Excel-interoperability and backward compatibility with Calc.) Change-Id: Ibbe7224eabfb776cf6e7ecfeabae6d188178f4ed Reviewed-on: https://gerrit.libreoffice.org/29885 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* loplugin:expandablemethodds in formula..frameworkNoel Grandin2016-10-194-68/+10
| | | | | | | Change-Id: I6c8b1bb3b664faa92b2dc05955c30bfd35f6dfaa Reviewed-on: https://gerrit.libreoffice.org/30015 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#93894: Prohibit grouping when certain token types are present.Kohei Yoshida2016-10-181-1/+4
| | | | | | | For instance, column / row label tokens don't work correctly in grouped cells with the current implementation. Change-Id: Idf86312ef15fbfd4382aa90ee6d131c671a80683
* tdf#102948 Make HYPGEOMDIST ODFF1.2 compliant.Winfried Donkers2016-10-141-0/+16
| | | | | | | | | | | Also reduce duplicate code. On Export to OOXML, HYPGEOMDIST is converted to HYPGEOM.DIST. Change-Id: I70a70ee6b5c542e272ef574073ebcd1924f31083 Reviewed-on: https://gerrit.libreoffice.org/29767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* I can't see any evidence of any remaining magenta mask using image resourcesCaolán McNamara2016-10-062-19/+8
| | | | Change-Id: I12865d743daa3e6479edb60584d5bd01f88e818d
* convert the last two lonely FixedInfos to FixedTextCaolán McNamara2016-10-054-4/+1
| | | | Change-Id: Ia6ed5f71931a6141efb3d5e5eb329149d6850342
* convert MapUnit to scoped enumNoel Grandin2016-10-053-3/+3
| | | | | | | | | | | | I left a prefix on the names "Map" so that I would not have to re-arrange each name too much, since I can't start identifiers with digits like "100thMM" And remove RSC_EXTRAMAPUNIT, which doesn't seem to be doing anything anymore. Change-Id: I5187824aa87e30caf5357b51b5384b5ab919d224 Reviewed-on: https://gerrit.libreoffice.org/29096 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann2016-10-059-47/+47
| | | | | | | | | ...which was introduced with 3ead3ad52f9bb2f9d1d6cf8dfc73a0a25e6778ed "Gradually typed Link" to distinguish the new, typed versions from the old, untyped ones, but is no longer necessary since 382eb1a23c390154619c385414bdbe6f6e461173 "remove untyped Link<>" removed the old versions. Change-Id: I494025df486a16a45861fcd8192dfe0275b1103c
* convert formula error codes to scoped enumNoel Grandin2016-09-232-61/+63
| | | | | | | Change-Id: I5ff214bf1ec9031e30344bc125bc99916fd11bfb Reviewed-on: https://gerrit.libreoffice.org/28897 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* loplogin:singlevalfields in include/Noel Grandin2016-09-161-6/+2
| | | | | | | Change-Id: I27842162fcf82120ecb811ee8e89e187430931fc Reviewed-on: https://gerrit.libreoffice.org/28931 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann2016-09-134-5/+5
| | | | | | | | | | | | | | | | | 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
* handle overwriting of symbols/opcodes in symbol map for known casesEike Rathke2016-08-261-7/+84
| | | | | | | | | | | | | | | | | | | | | | | This silences the SAL_WARN_IF like warn:formula.core:6944:1:formula/source/core/api/FormulaCompiler.cxx:625: OpCodeMap::putOpCode: reusing OpCode 161, replacing '_xlfn.ORG.OPENOFFICE.ERRORTYPE' with 'ERRORTYPE' in English map 0x1018000 that occurred during the first load of OOXML .xlsx documents since the old bad entries were added with commit 89c4a69103b6e15e7f52401c51110b926c3ccf36 In fact the direction opcode -> string was replaced, which it should had not. That specific mapping is only used though when loading msoxl namespace formulas from ODF. Also, the replacement of parameter separator and array column and row separator worked merely by chance, depending on in which order the entries where inserted to the hash map. Fixed along as it popped up with the new handling. Change-Id: I88017a8b38ccc30874c3dca7d78f0fa47a77a36f
* screenshots: add new global make targetArmin Le Grand2016-08-181-1/+2
| | | | | | | | | Up to now the screenshot creation was added/dependent of target slowcheck. Since quite some modules have added screenshot creations now, I added an own target 'screenshot' to allow to keep current slowcheck and screenshot creation separated Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
* screenshots: unify dumping of dialog test batch fileArmin Le Grand2016-08-181-74/+2
| | | | Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
* screenshots: add dialog test cases for formulaArmin Le Grand2016-08-184-0/+255
| | | | Change-Id: I2fb495dd8603b00127504240e4bec16726c2153f
* loplugin:countusersofdefaultparams in editeng..fpickerNoel Grandin2016-08-051-4/+4
| | | | | | | Change-Id: I6356c95296d81736fc6d66e510cd70606ee55f68 Reviewed-on: https://gerrit.libreoffice.org/27897 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Resolves: tdf#69539 UI rename CONVERT to CONVERT_OOO, CONVERT_ADD to CONVERTEike Rathke2016-08-031-4/+4
| | | | | | ... with same syntax but different semantics that was even more confusing. Change-Id: Ibe1efcd5c4e82c9ce8d9fe8ed0f85e86dac327f7
* rename ocConvert to ocConvertOOo and relatedEike Rathke2016-08-032-7/+7
| | | | | | ... to clarify that this is not the "real" CONVERT function. Change-Id: Ia71949ffabd2c983be0dbf9fa36bb8c52f0077ee
* UI rename DURATION to PDURATION, DURATION_ADD to DURATION, tdf#50488 relatedEike Rathke2016-08-031-4/+4
| | | | Change-Id: I7ba783b59a711fc9c9d6bbe68dcf8c3c1a0d409d