summaryrefslogtreecommitdiff
path: root/sc/source
AgeCommit message (Collapse)Author
2015-10-15convert Link<> to typedNoel Grandin
Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc
2015-10-14tdf#93318 reintroduce first/last button in Calc tab barTomaž Vajngerl
Seems that first/last button are still useful when there are a lot of tabs. Using ctrl+click is not discoverable enough for the users so for now bring the buttons back. Also turn on enabling/disabling buttons when they have some effect (this was turned off for Calc for unknown reasons). Change-Id: I6bbb04d44066ebc6b89fe3d941ecafdbb378284a
2015-10-14Improve performance by using the ScCalcOptions for OpenCL.Michael Meeks
Use the new configurationlistener to track the relevant setting. Change-Id: I9decea55df25f7eb34cd2fef94743d1907360d16 Reviewed-on: https://gerrit.libreoffice.org/19377 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-10-14coverity#1326130 Logically dead codeCaolán McNamara
Change-Id: I77453452183c0f3cb9b3a03c37142264d49a7d3a
2015-10-14LOK: include part numbers in CALLBACK_SEARCH_RESULT_SELECTION payloadMiklos Vajna
Without that, the result in Calc/Impress is ambiguous. Change-Id: I8dfd8dafc996102ed583688fddd721c7600dc48c
2015-10-14tdf#95041 Fix sidebar node namesSamuel Mehrbrodt
Change-Id: I3435de44e04268dc557faedba944c2c33385b89c
2015-10-14convert Link<> to typedNoel Grandin
Change-Id: I1876f327607e0e23292950741df348d4ec31fde1
2015-10-13Resolves: tdf#94514 more restrictive check on end of column specifierEike Rathke
... needed since we accept A:A entire column notation without the need of a row number being specified. Change-Id: I84f6a39e213a4b554e0188e73b4acb34c7a98460
2015-10-13remove some useless commentsNoel Grandin
found with git grep '// /' Change-Id: I948cf9ae61bbbf2ec706ca5b0572c4f27c58c745
2015-10-13cppcheck:variableScopeNoel Grandin
Change-Id: I7cbd5a9e9bb5417f754d4e2445df309140fd40af Reviewed-on: https://gerrit.libreoffice.org/19329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12Related tdf#93688: save CalcA1|ExcelA1 also as a global optionKatarina Behrens
without this patch, it's only possible to save it on per-document base Change-Id: I13359b751ef766c7de53e9e21c299aadbbc0fbf4 Reviewed-on: https://gerrit.libreoffice.org/19248 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12tdf#39468 translated german comments in tabvwsh2.cxxAlbert Thuswaldner
Change-Id: I14879cdebe95926ce24a8c3e821488aeb1f98bc0 Reviewed-on: https://gerrit.libreoffice.org/19306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-10-12tdf#39468 additional comments translated in dbfunc3.cxx and grindwin.cxxAlbert Thuswaldner
Change-Id: I0d610a49adc0e87ff1a4e98244cb14f585239586 Reviewed-on: https://gerrit.libreoffice.org/19291 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-10-12Related tdf#93688: better place this into import finalize phaseKatarina Behrens
Change-Id: I08066248973f4560f8f5d149e9f84c4c2302f12c
2015-10-12convert Link<> to typedNoel Grandin
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I935c6144a7731091e7fdb0a818b54f30d3304f2e
2015-10-12convert Link<> to typedNoel Grandin
Change-Id: Ib9a493af0f64c5f3eb50f392805c3278ed2164a0 Reviewed-on: https://gerrit.libreoffice.org/19304 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-12cppcheck:variableScopeNoel Grandin
Change-Id: I037feb335499629300309851dcda3bb661f03d4f Reviewed-on: https://gerrit.libreoffice.org/19316 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-10fix gnumeric importMarkus Mohrhard
Change-Id: I65e4d4df9b75304096ec51e07f5985023ad3071c
2015-10-09tdf#39468 translated german comments in styledlg.cxxAlbert Thuswaldner
Change-Id: Ib6ad2fff04dbbcdb3d5f527d0a23c771409dc6e3 Reviewed-on: https://gerrit.libreoffice.org/19285 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-10-09Revert "Resolves: tdf#94869 propagate error when obtaining a scalar double ↵Eike Rathke
value" This reverts commit 934e47958c78d1184beaaefdf3baefd3eecbea05. Calculating with NaN cries for even more problems..
2015-10-09crashtestig: infinite recurse in ooo32833-1.sxcCaolán McNamara
integralPhi is called with nan(0xfffff000001f6) which recurses through rtl_math_erfc->rtl_math_erf->rtl_math_erfc until we run out of stack Change-Id: Iab8a22fb23686d22d151f2508dbeb44ab47a76b7
2015-10-09crashtesting: ooo95537-1.xls fails with a fAnz that is nanCaolán McNamara
so it happily passes the pre-cast string bounds check and blows up in the post-cast string access Change-Id: Ifd4d087b37e8a84d886e2f7833dfc773b8bf1343
2015-10-09tdf#94910 sc: Fix drawing toolsMaxim Monastirsky
Regression of: commit 89d39bc100aabf5dccbe77c0b5c0c85736e85b39 Author: Oliver Specht <oliver.specht@cib.de> Date: Wed Sep 30 16:10:07 2015 +0200 tdf#94559: 4th step to remove rtti.hxx Change-Id: I94408dafde0f2dbea6c3a112963468c593adfc2d Reviewed-on: https://gerrit.libreoffice.org/19276 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-10-09Apparently, pUndoDoc must be reset before calling DeleteSdrUndoActionStephan Bergmann
...in ~ScUndoDeleteContents, otherwise (implicitly) resetting pUndoDoc only at the end of ~ScUndoDeleteContents could cause a stack of calls into ~ScDocument, ~ScTable, ~ScColumn, ~ScPostIt that operates on stale pointers, as an SdrCaptionObj is already destroyed while the ScPostIt still points to it. See the failing JunitTest_sc_unoapi_2 under ASan+UBSan at the end of <http://ci.libreoffice.org/job/lo_ubsan/41/console>. Regression introduced with ee9b3c1f1cb7445f0a7e76736e32fe81878f8d00 "Return the std::unique_ptr itself here, not a raw pointer." Change-Id: I5e1c6c3e46cb46388d186b63ce23b00fd298a32b
2015-10-09Resolves: tdf#93613 let referenced document evaluate macro configEike Rathke
... if the current document allows macros. Change-Id: I927981334e27d073696286ba680777a645d53653
2015-10-09tdf#93243 replace boost::bind with C++11 lambdas Cell...PropertyPanel.cxxAlbert Thuswaldner
Change-Id: Id2d892742cd69da2deba51775bd04ecbec32f436 Reviewed-on: https://gerrit.libreoffice.org/19170 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-08consistently use _ADD suffix for Add-In duplicated function namesEike Rathke
... as English names. These might be used in API calls to execute one function if I'm not mistaken.. that old Add-In "when are which names used" is a maze.. Change-Id: If7e0d38c422533c49243c93245dc666c553a2153
2015-10-08sc tiled rendering: implement LOK_CALLBACK_SEARCH_RESULT_SELECTIONMiklos Vajna
Change-Id: Iaca2c1807a6e92cf7a87b0843000d65aea45fe7b
2015-10-08sc tiled rendering: no need to show this dialogMiklos Vajna
And it just causes problems during unit testing. Change-Id: Ie8524b726ae2709bab707df9b2984f07357e3059
2015-10-08editeng, sw, sc: use comphelper::string::join()Miklos Vajna
Change-Id: I9b0a32271a965bc4089720ccb61b26b67ceab7b2
2015-10-073stars iconset not exported to OOXML, tdf#94850Markus Mohrhard
Change-Id: I983406a9eae2c975de0bb57894b89819445e8bec Reviewed-on: https://gerrit.libreoffice.org/19238 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-10-07Resolves: tdf#94796 LINEST and LOGEST have ForceArray parametersEike Rathke
Change-Id: I6bd82191ef7c5bb2c7829daf341d360c6d09c11b
2015-10-07Resolves: tdf#94869 propagate error when obtaining a scalar double valueEike Rathke
... if any operation like popping a value or calculating an intersection resulted in error, so the error gets passed as double error to matrix operations where one operand is a scalar value. Change-Id: I909ba25545625b827ce790e07d1ebe8643154703
2015-10-07sc tiled rendering: fix showing all search resultsMiklos Vajna
Calc can have multiple cells selected, but there is only one cell which has the black border around the cell. Code in ScViewFunc::SearchAndReplace() assumed that the two are always the same, and that's how find-all always highlighted the first match only. Fix this by avoiding emitting LOK_CALLBACK_TEXT_SELECTION two times, at least in the find-all case. Change-Id: Ifce789c7f5f11e94fb2445846279823096ecb2dd
2015-10-07loplugin:mergeclassesNoel Grandin
Change-Id: I8f5c2ae658f8784233db98f752b6f9fa53110195
2015-10-07loplugin:defaultparamsStephan Bergmann
Change-Id: Ibeac9ac30e6841280036bb81ff7245f205b07b83
2015-10-06tdf#50950 Add ODFF1.2 Calc function ISOWEEKNUM,Winfried Donkers
make Calc function WEEKNUM compliant with ODFF1.2, provide backward compatibility for Calc function WEEKNUM, add unit tests for ISOWEEKNUM, WEEKNUM and backward compatibility. Change-Id: I63af5543cea2f470d710462e55404ac754022c89 Reviewed-on: https://gerrit.libreoffice.org/18760 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-10-06tdf#94228 comphelper: replace BOOST_PPDaniel Robertson
Replace BOOST_PP macros in comphelper with variadic templates. The client interface should not change. However, there are a few side effects due to this change. The most important being 1) There is no longer a maximum number of service declarations limmited by default at 12 for unwrapArgs and component_getFactoryHelper. 2) component_getFactoryHelper now terminates early as soon as pRet is not a null pointer. Change-Id: I016fd208d0e80f91d8669fff29d58b6189e946d3 Reviewed-on: https://gerrit.libreoffice.org/18891 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-10-06reintroduce initial coupling of EmptyStringAsZero to StringConversionEike Rathke
... as not all combinations make sense and aren't handled. For ILLEGAL and ZERO string conversions the EmptyAsZero checkbox is to be disabled. Also, remember the EmptyAsZero value again if the user toggled it. Got lost in commit e224c9cb929cd744674b5d4d265cfb4680c82a2b "Refactor OpenCL settings dialog" Change-Id: I86f9278e3d7856c70e94c2d1eb9f507359b90899
2015-10-06sensible variable namingEike Rathke
Change-Id: I2ae662b65fe9ffd4f6aaf6441f506fb8a943bce2
2015-10-06formatted string could contain a trailing 0x1B, though very unlikelyEike Rathke
Change-Id: Ie95b168ee7c4101d7a9ee45d5753ea8ff557e00a
2015-10-06Resolves: tdf#78897 do not cache/reuse a repeat-filled stringEike Rathke
Column widths or fonts or sizes may differ. Change-Id: I1b4be9a6a6158e10439895534a8cb99c2ca408b7
2015-10-06Related: tdf#94814 some cleanup of static_cast following dynamic_castCaolán McNamara
to the same type Change-Id: I197e88acbc30f8e8bb9e7f2d54803971df6062af
2015-10-06vba: convert to variadic InheritedHelperInterfaceImpl&WeakImpl etcDouglas Mencken
Variadic templates ~-i.e. templates, which can take an arbitrary number of arguments of any type-~ is new C++11 feature note that uno::Reference and cppu::UnoType can only take one parameter thus leave XNamedObjectCollectionHelper non-variadic in vbacollectionimpl.hxx Change-Id: I22e60fa050ee31d39ae8bb7cac06cf243c4587b1 Reviewed-on: https://gerrit.libreoffice.org/19145 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-10-06Replace some OSL_ENSURE with assertStephan Bergmann
...at least in the !IsEmpty() branch of XclExpString::WriteBufferToMem, pnMem is used in ways were being null would be undefined behavior, and the only place from which WriteHeaderToMem, WriteBufferToMem are called (lclAppend in sc/source/filter/excel/xeformula.cxx, via WriteToMem) will always pass a non- null argument anyway Change-Id: Iabc06b53ae6059246c5c222d43a789c6bdc440d5
2015-10-06Return SdrObjectPtr from some XclImpDrawObjBase::Create... etc. functionsStephan Bergmann
Change-Id: Ia68b68aaca7feaacd2245254b2f2d110e669aaef
2015-10-06Return std::unique_ptr from some XclEscherEx::Create... functionsStephan Bergmann
...even if, for now, the return values are directly release()'ed anyway at the call sites Change-Id: I118c74787260b1ec7eabf5e300580aa5a16b2cfa