summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2016-05-04While at it, delete Any functions on sal_Bool*Stephan Bergmann
(at least for LIBO_INTERNAL_ONLY), to help further reduce the occurrences of sal_Bool across the code base Change-Id: I70654a0cb56655984c717b7b894f26c9ab47536e
2016-05-04underline popup control possible to use outside sidebarSzymon Kłos
Change-Id: I48097007c7dc0439b33233939c1d73902dfeb679 Reviewed-on: https://gerrit.libreoffice.org/24491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2016-05-04loplugin:implicitboolconversionStephan Bergmann
Change-Id: I80f7967c5d537d1318890687631c0ceebef75fae
2016-05-04Correct value types for the respective function objects.Kohei Yoshida
Change-Id: I88771e976fe2a40fd4734b57dcf1728162ba559a Reviewed-on: https://gerrit.libreoffice.org/24629 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2016-05-04Replace namespace ScErrorCodes with formula...Kohei Yoshida
and remove that 'using namespace' statement in the header... Change-Id: I2f994af5088ce6d1ffe92c8d36285a4f6fdd2248 Reviewed-on: https://gerrit.libreoffice.org/24628 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2016-05-03NameToken with Sheet instead of boolean GlobalEike Rathke
... to transport an actual sheet number for other-sheet-local names within names when importing OOXML. Change-Id: I00f2ffe07271c1c2a8ce9e10514e10872396f566
2016-05-03tdf#42949: clean up includes in include/oox/drawingml with iwyuJorenz Paragas
Add includes in other files to fix compiler errors. Change-Id: I566e2e081094cb074d20afbe7ceee49f759c725b Reviewed-on: https://gerrit.libreoffice.org/24510 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-03IFS/SWITCH propagate error only for active paths, tdf#97831 follow-upEike Rathke
Change-Id: Ief07f0d582e2f283a3ede88a7d202e8cff0e14bf
2016-05-03tdf#97831 [part] Add Excel 2016 functions to CalcWinfried Donkers
Functions IFS and SWITCH. Change-Id: Ic43d42a933bcac883e9aa2213dd4ddeddf45abf0 Reviewed-on: https://gerrit.libreoffice.org/24424 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-05-03Prevent Any::setValue from reinterpreting bool* as sal_Bool*Stephan Bergmann
...which only happens ot work in environments where sizeof (bool) == 1. The simpler alternative is to use the operator <<= template without passing explicit UNO type information, anyway. The std::nullptr_t overloads are needed to disambiguate calls with a nullptr argument. (Which can at least be meaningful for VOID, but for other types what it happens to do is store a default value of the given type.) As std::nullptr_t is only C++11, this all needs to be LIBO_INTERNAL_ONLY. Change-Id: Iff06a6ba94250bd4ae4afc937c2a2bfa75f0888f
2016-05-03Prevent Any ctor from reinterpreting bool* as sal_Bool*Stephan Bergmann
...which only happens to work in environments where sizeof (bool) == 1. The simpler alternative is to use the Any ctor template without passing explicit UNO type information, anyway. The std::nullptr_t overloads are needed to disambiguate calls with a nullptr argument. (Which can at least be meaningful for VOID, but for other types what it happens to do is store a default value of the given type.) As std::nullptr_t is only C++11, this all needs to be LIBO_INTERNAL_ONLY. Change-Id: I0f72c73a088ef96e069c3ed8c78546b16d89b50a
2016-05-03Remove unnecessary setBOOL, makeBoolAnyStephan Bergmann
Change-Id: Id82c3f352fcc2d4dafad877517098cb6f5d046d4
2016-05-03Remove Edit -> Plug-in as no longer usedBryan Quigley
This functionality seems to only have been used with NPAPI plugins. They've been previously removed. Per the help text, if it is still used by anything, you can use the context menu instead. MN_READONLY_PLUGINOFF also appeared to be unused, so removed. More code might be removable, but would affect activate on click/visible. Change-Id: I12d5bf54edd3a2f716912179b87e798b47b3cc3d Reviewed-on: https://gerrit.libreoffice.org/24500 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-05-02silence ScTableRefToken::GetSheet() SAL_WARN about unhandledEike Rathke
Change-Id: I539bad573bfc459103acc0cb0227bad7681b79aa
2016-05-02unit test for tdf#99417 track formula cells for BROADCAST_BROADCASTERSEike Rathke
Change-Id: I82cd43774388a426b4c7dc536952dc3f9584cf9e
2016-05-02Resolves: tdf#99417 explicitly track formula cells for BROADCAST_BROADCASTERSEike Rathke
Change-Id: I717fc6d1d7c2bc01ed2a256f6fc08a055be24e4b
2016-05-01Fix typo in codeAndrea Gelmini
Change-Id: Ib674c32da1f9f4c1920c7286fa41b1297f8e1f8f Reviewed-on: https://gerrit.libreoffice.org/24530 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-01add test for tdf#98990Markus Mohrhard
Change-Id: I0789d250aa52994948c392c1e8f06c5546defc8f Reviewed-on: https://gerrit.libreoffice.org/24546 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-30ignore missing children, tdf#99422Markus Mohrhard
Change-Id: I2d4a7f03940045c34369876aea78c3eda81da78b
2016-04-30Fix typosAndrea Gelmini
Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73 Reviewed-on: https://gerrit.libreoffice.org/24317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-30Resolves: tdf#76523 copy used names or pointing to sheet to other documentEike Rathke
Change-Id: I767ed1f212c257741fd982e8bbd0882a29d439c1
2016-04-30unit test for copying names not used in formulas during sheet-copyEike Rathke
... but global or local name references copied sheet, or all local names. Change-Id: I84b22f444b72b032a339d5826989ad934cc10981
2016-04-30during copying sheet copy all global and sheet-local names pointing to itEike Rathke
... not just names that are used by formula cells copied along. Change-Id: Ibe7d0e4b45c8e4c68dbaa1f570903e942be85087
2016-04-30introduce ScRangeName::CopyUsedNames()Eike Rathke
Change-Id: I2f3e88f70e5d7b9b4728f5bdd0a8237c7bcc7dcb
2016-04-29coverity#1358842 Missing break in switch, presumably there should be oneCaolán McNamara
Change-Id: I18918d061006e614a9c370a68348c42efb00449e
2016-04-29tdf#97831 follow up improve error handlingWinfried Donkers
(And make code consistent with other Excel2016 functions.) Change-Id: Id46b98fd1b7e8e036b6584ef382d1ff2171edab7 Reviewed-on: https://gerrit.libreoffice.org/24485 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-04-28move to ScDocument::CopyAdjustRangeName() and namespaceEike Rathke
Change-Id: I1ec3c8cc1b8d3cb899d49192295b14ffac02849a
2016-04-28move to ScDocument::FindRangeNamesReferencingSheet()Eike Rathke
Change-Id: I8ddd83eca3eaf0bd04c8c73a16329517ec3c21b3
2016-04-28adjustCopyRangeName: pass rSheet, rIndex; encapsulate nNewSheetEike Rathke
Change-Id: I3de5982b8b8ad179010787ed7be721be54f761af
2016-04-28tdf#97087 Give comprehensible, unique names to idlesMuhammet Kara
Timers and idles should have programmer comprehensible, unique names Change-Id: Id0f2c0a77cd28c3ec5473e8432569739b58d2101 Reviewed-on: https://gerrit.libreoffice.org/24388 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-28teach stylepolice plugin about ref-counted-pointer namingNoel Grandin
Change-Id: I6e91d22fc1826038c05ddb6fc065563c6a250752 Reviewed-on: https://gerrit.libreoffice.org/24459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-27add todo list with open performance problems in calcMarkus Mohrhard
Change-Id: I3f9969b142b2673aadc9b85c77e226c7b2806d51
2016-04-27extract adjustCopyRangeName() from adjustRangeName()Eike Rathke
Change-Id: I1dd41a4fe96187750d4269e732ca39c19de3c060
2016-04-27make findRangeNamesReferencingSheet() independent from a passed FormulaTokenEike Rathke
Preparing to extract some functionality. Change-Id: Ic0e298273f6f047a7d35aaa31fb99d9a45128ad0
2016-04-27FindRangeNameByIndexAndSheet() to FindRangeNameBySheetAndIndex()Eike Rathke
index,sheet was slightly confusing as we lookup an index within a sheet. Change-Id: I164dd48187e6652639094e33ca83a91a96c893a0
2016-04-27accept UTF8 as explicit charset valueEike Rathke
... to follow the (wrong) docs on the net.. it doesn't harm. Change-Id: I30c34edb6dc1c56084625de8e52bfb5afe82fcf7
2016-04-27Add default line width defines for TableBordersslideon
This define makes things clearer. Change-Id: Idd4abf11ed7657c688ea95aac1958ee4b1fd32ee Reviewed-on: https://gerrit.libreoffice.org/23732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-04-27tdf#45904 Move java XViewPane test to c++Fabio Buso
Change-Id: I3c99fb4c611a3b45d31412731c548b59e95d7179 Reviewed-on: https://gerrit.libreoffice.org/24285 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-04-26loplugin:stringconstantTor Lillqvist
Rewrite call of rtl::OUString::operator= with empty string constant argument as call of rtl::OUString::clear. Change-Id: Ib53fcfcca95e8c46f8ae24d648d7b9bf421df3f5
2016-04-26C++11: disable ctors instead of not implementing them (sc)Jochen Nitschke
replace the old declare and don't implement pattern with C++11 delete keyword Change-Id: I96c71d512d8dab4ad7c806c2e871604163fc49c1 Reviewed-on: https://gerrit.libreoffice.org/24399 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-04-26early bail out if nGlobalError, tdf#97831 follow-upEike Rathke
Change-Id: Ic45d11cecc4bb372dac3deca27ae3665303d5b29
2016-04-26check availability of stack and some nitpicks, tdf#97831 follow-upEike Rathke
See comments on https://gerrit.libreoffice.org/#/c/23601/5 Change-Id: Ib8d5a6cbf87f8b6cafd825f380c7e65c3227aefd
2016-04-26tdf#97831 [part] Add Excel 2016-Office 365 functions to CalcWinfried Donkers
Functions CONCAT and TEXTJOIN. Change-Id: I38092f77df719d11f6746ac10fe14dc53b7e93e7 Reviewed-on: https://gerrit.libreoffice.org/23601 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-04-26update loplugin stylepolice to check local pointers varsNoel Grandin
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1 Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-25comment flat copy sharing code tokensEike Rathke
Change-Id: I80f8f7cc8f812fe412346876593c11aa221cb1b9
2016-04-25be explicit about what it does, CreateFlatCopiedTokenArray()Eike Rathke
Change-Id: I3652e4e46f85343488fb77bc4169bf6825086cf4
2016-04-25update the ants only twice per secondMarkus Mohrhard
This fixes some performance problem when the whole sheet has been selected. Updating the whole paint range 6 times per second seems excessive. Change-Id: Ia4de5d66a8c316b70a0dd7daac00b9f10d7d9dfd
2016-04-25Resolves: tdf#99461 reverse logic of TokenPointers::skipToken()Eike Rathke
... so that all code tokens are adjusted even if shared with another flat copied token array, but RPN not if shared. Was vice versa. ScConditionEntry has shared token arrays for pFormula1|pFCell1 respectively pFormula2|pFCell2 hence the references weren't updated. Change-Id: I52256b5ea20da753a2a29ff437f09c921566e070
2016-04-25There is no css::uno::Sequence<sal_uInt8> in UNOStephan Bergmann
Change-Id: I1d2207a5a8832155e29c334cbfe5dc5d794b80da
2016-04-25Some more sal_Bool -> boolStephan Bergmann
Change-Id: I1ddb99cf9b401d11e0701974646e1e22739c14ee