summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)AuthorFilesLines
2015-10-12cppcheck:variableScopeNoel Grandin7-57/+48
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 Mohrhard3-2/+10
Change-Id: I65e4d4df9b75304096ec51e07f5985023ad3071c
2015-10-09tdf#39468 translated german comments in test.cxxAlbert Thuswaldner1-61/+60
Change-Id: Ie40fdafe89d2feed45306b50a358a02b077ceb52 Reviewed-on: https://gerrit.libreoffice.org/19287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-10-09tdf#39468 translated german comments in styledlg.cxxAlbert Thuswaldner1-4/+4
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 Rathke1-15/+7
value" This reverts commit 934e47958c78d1184beaaefdf3baefd3eecbea05. Calculating with NaN cries for even more problems..
2015-10-09crashtestig: infinite recurse in ooo32833-1.sxcCaolán McNamara1-1/+4
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 McNamara1-5/+5
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 Monastirsky2-50/+3
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 Bergmann1-0/+1
...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 Rathke1-0/+16
... if the current document allows macros. Change-Id: I927981334e27d073696286ba680777a645d53653
2015-10-09tdf#93243 replace boost::bind with C++11 lambdas Cell...PropertyPanel.cxxAlbert Thuswaldner1-2/+2
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 Rathke1-1/+1
... 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 Vajna3-6/+49
Change-Id: Iaca2c1807a6e92cf7a87b0843000d65aea45fe7b
2015-10-08sc tiled rendering: no need to show this dialogMiklos Vajna1-1/+2
And it just causes problems during unit testing. Change-Id: Ie8524b726ae2709bab707df9b2984f07357e3059
2015-10-08editeng, sw, sc: use comphelper::string::join()Miklos Vajna1-9/+4
Change-Id: I9b0a32271a965bc4089720ccb61b26b67ceab7b2
2015-10-073stars iconset not exported to OOXML, tdf#94850Markus Mohrhard1-0/+1
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 Rathke1-2/+2
Change-Id: I6bd82191ef7c5bb2c7829daf341d360c6d09c11b
2015-10-07Resolves: tdf#94869 propagate error when obtaining a scalar double valueEike Rathke1-7/+15
... 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 Vajna1-1/+2
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 Grandin2-7/+7
Change-Id: I8f5c2ae658f8784233db98f752b6f9fa53110195
2015-10-07loplugin:defaultparamsStephan Bergmann1-1/+1
Change-Id: Ibeac9ac30e6841280036bb81ff7245f205b07b83
2015-10-06tdf#50950 Add ODFF1.2 Calc function ISOWEEKNUM,Winfried Donkers10-7/+73
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 Robertson1-0/+1
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-06tdf#91097 Substitute rectangle and ellipse uno commandsYousuf Philips2-4/+2
Change-Id: Ib6578ddd7897d9c5d63b5dc8d8465f6107cc24a6 Reviewed-on: https://gerrit.libreoffice.org/19130 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-10-06reintroduce initial coupling of EmptyStringAsZero to StringConversionEike Rathke2-21/+29
... 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 Rathke1-23/+23
Change-Id: I2ae662b65fe9ffd4f6aaf6441f506fb8a943bce2
2015-10-06formatted string could contain a trailing 0x1B, though very unlikelyEike Rathke1-6/+11
Change-Id: Ie95b168ee7c4101d7a9ee45d5753ea8ff557e00a
2015-10-06Resolves: tdf#78897 do not cache/reuse a repeat-filled stringEike Rathke1-0/+3
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 McNamara14-82/+73
to the same type Change-Id: I197e88acbc30f8e8bb9e7f2d54803971df6062af
2015-10-06vba: convert to variadic InheritedHelperInterfaceImpl&WeakImpl etcDouglas Mencken28-120/+120
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 Bergmann1-2/+3
...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 Bergmann2-57/+54
Change-Id: Ia68b68aaca7feaacd2245254b2f2d110e669aaef
2015-10-06Return std::unique_ptr from some XclEscherEx::Create... functionsStephan Bergmann2-8/+8
...even if, for now, the return values are directly release()'ed anyway at the call sites Change-Id: I118c74787260b1ec7eabf5e300580aa5a16b2cfa
2015-10-06Hold some objects by rtl::ReferenceStephan Bergmann1-5/+5
Change-Id: If42b0fea8417f5e8ce2cb68d79e92e628c77d9e5
2015-10-06Hold ScAccessibleDocumentPagePreview::mpTable by rtl::ReferenceStephan Bergmann2-20/+15
Change-Id: I808f406c6c6c46c0a72e6e02503899e78ba7f7e4
2015-10-06Hold ScAccessibleDocument::mpAccessibleSpreadsheet by rtl::ReferenceStephan Bergmann2-19/+16
Change-Id: If5b0c7603bb69697a53954b6adfd5ff91d196503
2015-10-06 tdf#94559: 4th step to remove rtti.hxxOliver Specht110-420/+401
replaced use of PTR_CAST, IS_TYPE, ISA in idl, editeng, sc, sd, sw, sfx2, sot, starmath Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653 Reviewed-on: https://gerrit.libreoffice.org/19132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-10-05Resolves: tdf#91453 use configuration of text to number conversionEike Rathke1-1/+25
... also in arithmetic matrix operations if both operands are matrix. Change-Id: I84609656b166b4e059d9496a5ed732a96e731164
2015-10-05Resolves: tdf#91453 use configuration of text to number conversionEike Rathke1-13/+28
... also in arithmetic matrix operations. Change-Id: Ia00054d0af383e225d9d40b59da2dc28a817b65a
2015-10-05add half decoupled ScInterpreter::ConvertStringToValue()Eike Rathke2-0/+10
... for back calls of ScMatrix in preparation of tdf#91453 Change-Id: Ife94d1675c1bc7c5611586e3f352ff69264469d7
2015-10-05Performance test for PEARSONŁukasz Hryniuk2-0/+27
Change-Id: Ifd7fe80c6eeea07a824fe9118425760f2558b1e0
2015-10-05Performance test for GCDŁukasz Hryniuk2-0/+26
Change-Id: I33504157bf10aadf5f010249aa35beefc4dbb972
2015-10-05Performance test for LCMŁukasz Hryniuk2-0/+26
Change-Id: I054191884f9550d5f16de2c7af04231f71f16bfa
2015-10-05Performance test for TTESTŁukasz Hryniuk2-0/+26
Change-Id: I05e34b24ed074a9f33d2a860f9042c85d7b556bc
2015-10-05Performance test for SUMX2PY2Łukasz Hryniuk2-0/+26
Change-Id: If7cf21e0345a1dd5a8eb0100a684c8272c7e2bce
2015-10-05Return rtl::Reference from ShapeTypeHandler::CreateAccessibleObjectStephan Bergmann2-49/+40
...and handle related fallout Change-Id: Ie82d853a9bf28b359d5aab9d0af01b728d68ed70
2015-10-05tdf#94687: Keep original ordering of overall initialization stepsStephan Bergmann3-1/+8
...between ScGridWindow::CreateAccessible, ScAccessibleDocument ctor, and ScAccessibleDocument::Init, by introducing ScAccessibleDocument::PreInit into which the this-using parts of the ScAccessibleDocument ctor are offloaded now. This is a follow-up to 6f1e77fc600f776433a759172323b4afec3d811e, "rhbz#1264753: Avoid this being release()ed to 0 in ScAccessibleDocument ctor;" turns out my fears that the slight re-ordering of initialization code coulb break something were well-founded after all. Change-Id: Ibf62983030d7abbe4b1ead9ee5add5f9627e7d60
2015-10-05LOK: added the button type and key modifier to postMouseEvent()Mihai Varga2-3/+5
To get a better functionality we need to know the button type (left, right, middle). We also need the key modifier (ctrl, alt, shift) for actions such as ctrl+click (to open a link) or shift+click to select Change-Id: Iaccb93b276f8a6870dd41cc5132dbb85d2bbf71b
2015-10-05tdf#39468 translated german comments in undoblk*.cxxAlbert Thuswaldner2-4/+4
Change-Id: Ia4bb41737c014946f22974640768a0232dc87f49 Reviewed-on: https://gerrit.libreoffice.org/19121 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-10-05use collator for UI visible sorting, tdf#94173 follow-upEike Rathke1-1/+1
Change-Id: Ib9f7ebb087c1ce5008f43b2df3f1fadc41066ed1