summaryrefslogtreecommitdiff
path: root/sc/source
AgeCommit message (Collapse)AuthorFilesLines
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca56-265/+259
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-09typo: formual -> formulaAndras Timar1-2/+2
Change-Id: I39b4c2fc4edd7d609b15fc289dd1b053c749f435
2014-10-09make streamtimeout a config variable instead of an env. var.xukai1-10/+5
Change-Id: I6c82142265a0a149206d15fbc267ad61e6b9cf3b
2014-10-08Move this one to a common place too.Kohei Yoshida4-11/+29
Change-Id: I7f4e007cfc861dc323b42be353c6ba11091e8fa1
2014-10-08Share undo doc creation code.Kohei Yoshida4-80/+82
Change-Id: I55f27b61637ba0284479c63c2fa48b0bd8938c0f
2014-10-08Start sharing common code between DeleteContents of ScViewFunc/ScDocFunc.Kohei Yoshida4-21/+66
The goal is to have ScViewFunc::DeleteContents() simply call ScDocFunc::DeleteContents() while doing the view only stuff in the ScViewFunc variant. This is just a step toward that goal. Change-Id: I2e574f9eb2b2be5340dbfb6f10739dfc2406faae
2014-10-08fdo#83141: optimize slow performance after when using replaceall or searchallSeyeong Kim1-4/+12
- problem was hang after replaceall or searchall function - fix slow performance by looping only selected cols. Change-Id: Ic0178af33bf381e52584bd4366bff9e128891b64 Reviewed-on: https://gerrit.libreoffice.org/11829 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Matthew Francis <mjay.francis@gmail.com> Tested-by: Matthew Francis <mjay.francis@gmail.com> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-08Resolves: fdo#48405 GetString can call a macro which modifies the documentCaolán McNamara1-19/+22
causing m_aDataArray to be cleared, so the rItem the result of GetString is being assigned to is invalid Change-Id: I1dc30d675233ddc53234bdb5349c5f374b036ca8
2014-10-08convert ParamType enum in SC to enum classNoel Grandin5-29/+29
mostly to get the NONE constant out of the global namespace, so I can convert other enums which also want to use the NONE constant Change-Id: I988d5d7e5316dd5e4ca0be0cc8f043f69bbb900c Reviewed-on: https://gerrit.libreoffice.org/11848 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-08spelling: instanciated -> instantiatedNoel Grandin1-1/+1
Change-Id: I99f3010e30f81786b938dc11736ea1597cd5530d
2014-10-07disambiguate uniform_int_distributionCaolán McNamara1-1/+1
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
2014-10-07Don't call comphelper::rng::uniform_real_distribution(a,b) with a==bTor Lillqvist1-0/+2
Change-Id: I95a3ac8da83e02001de13af8d31a04fe0d654dc0
2014-10-06avoid use of ref. to possibly deleted objectDavid Tardon1-1/+1
Change-Id: If5977b280fed8d8b053f59852d3984a59ce61a69
2014-10-06Resolves: fdo#80101 inserting non-chart as chart -> unhandled exceptionCaolán McNamara1-0/+5
Change-Id: I4d5438292d9a5c49f1336304ebd3dc4e155dd212
2014-10-06use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara6-19/+10
and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-06fdo#73151 Always open Styles&Formatting dialog in the sidebarSamuel Mehrbrodt1-1/+0
Change-Id: I05b63dc00023945d92fd837bd64042135d3f9aed Reviewed-on: https://gerrit.libreoffice.org/11648 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-06fdo#39468 Translate German Comments - sc/source/filter/inc/Christian M. Heller10-157/+157
Change-Id: I26eacb2f8ab02c788e82aa6fdcb76d8fa07f64fb Reviewed-on: https://gerrit.libreoffice.org/11803 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-05coverity#1231669 Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: I60b7c8267c81b0545c2bcc367ad6cac43aefad64
2014-10-05coverity#1231670 Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: I29a751b2d44e86ccf115015b0ede8bae2e702eea
2014-10-05related fdo#70998 use plural for Objects/Images optionStanislav Horacek1-1/+1
Change-Id: Ia76021bcb9044a10b880c12fcbf67e86b837ebd4 Reviewed-on: https://gerrit.libreoffice.org/11811 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-10-04coverity#704002 Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: Ibf506a219df7d0ad67959b3d266a037003fceea4
2014-10-04coverity#1242368: Unchecked return valueNorbert Thiebaud1-5/+7
Change-Id: I6aaad60cf08349aee6c07621764a1a6c071ad2b6
2014-10-04coverity#1242369: Unchecked return valueNorbert Thiebaud1-1/+1
Change-Id: Ib5a938d9a8a0ac1f2f5dfb299c948951bb845349
2014-10-04Add menu entry for the "formula to value" feature.Kohei Yoshida4-0/+60
Not sure 100% if that's the best place for this. Feel free to move it to a better place. Change-Id: Id66a92e1184e988bd71f7d845ea370b021c02c21
2014-10-04coverity#1242413: logically dead codeNorbert Thiebaud1-2/+3
Change-Id: I6e5e5025df4ad8eef6ff6a7910cb9c3ab5fc3c4e
2014-10-04coverity#124890,1242726 Unused ValueNorbert Thiebaud1-1/+0
Change-Id: I1d32b7d68ac0ec3752364e855390af21be3f4496
2014-10-04coverity#1242818 Unused valueNorbert Thiebaud1-2/+0
Change-Id: I487026489937679978e7ed403edb7125eb2c7fcf
2014-10-04coverity#1242771 Unused valueNorbert Thiebaud1-1/+0
Change-Id: I86455a041c98f010724ac6878e78a1b14cd26899
2014-10-04coverity#1242781 Unused ValueNorbert Thiebaud1-1/+0
if nLen2 is 0 then bNextNum is set and nLen1 is then 0, and the if(nLen1 || nLen2) can only be true if nLen2 is non zero and bNextNum get overriden... so the line bNextNum = !bLastAlp is useless. Change-Id: Ice62562bf321e5389f2118677e72d1b421816858
2014-10-04fdo#39468 Translate German Comments - difimp and htmlimpChristian M. Heller2-4/+4
Change-Id: I221d07c56822905c500f11f3f738231259743acd Reviewed-on: https://gerrit.libreoffice.org/11802 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-03Let's consistently spell OpenCL as 'OpenCL'.Kohei Yoshida8-96/+96
Change-Id: I8bdcf0667b326b77d11001efeeefd5247987ebdc
2014-10-03Let's not omit 'virtual' keyword here.Kohei Yoshida1-1/+1
Change-Id: Idf4ccbb6415852325acab673a3d81f758e50c880
2014-10-03Make these non-inline.Kohei Yoshida2-67/+77
Change-Id: I1cc28c16796934f20afc53c6f6f083f372b7ce69
2014-10-03Run 'beautify' on these files as well.Kohei Yoshida2-274/+292
And some trivial manual fixing afterward... Change-Id: Ib60411f689b7971a2dd1acd1541864f38b34b570
2014-10-03coverity#1242443 Identical code for different branchesCaolán McNamara2-9/+0
Splitter derives from Window and doesn't override MouseMove so both branches are the same Change-Id: Id74f12e2efb458ac2ae183686a57befdf0225778
2014-10-03coverity#1242454 Identical code for different branchesCaolán McNamara2-9/+0
Splitter derives from Window and doesn't override MouseButtonUp so both branches are the same Change-Id: I9072d24b60dacfdb1d3e9ca1c97f08002f7e24ba
2014-10-03coverity#1242431 Explicit null dereferencedCaolán McNamara1-4/+7
Change-Id: I96cbc59931400ad2f348ffb44925e8fe34b782ed
2014-10-03coverity#1242477 Dereference null return valueCaolán McNamara1-0/+3
Change-Id: Ic2d8dab00d5af47f6274433ee811f567f990400b
2014-10-03coverity#1242849 Unused valueCaolán McNamara1-1/+0
status gets overwritten after the switch ends Change-Id: I60d4f61e6e1f31f9dd79c178c9a6f7060d154013
2014-10-03WaE: private fields 'mnTab' and 'mnCol' are not usedTor Lillqvist1-5/+1
Change-Id: I449b85b00aeaf690644e17be0a6b2b9398a3cd3f
2014-10-02New feature to allow converting formula cells to static values.Kohei Yoshida13-0/+568
You used to have to convert formula cells to static values by copying them and pasting them as values onto the original place. Why not just allow converting them in place? This is something I've always wanted to implement.
2014-10-02Scope reduction by early bail-out.Kohei Yoshida1-31/+31
Change-Id: Iacbf9f46a1b5683b6de5dd93002a69078af46951
2014-10-02Make the coding style consistent with the rest of Calc code.Kohei Yoshida1-1100/+1205
I just ran SlickEdit's 'beautify' command with some follow-up manual editing. Change-Id: I402e782e7d147c4c95ebaa8ffcc40b50a0c565a7
2014-10-02Bin EE_CNTRL_URLSFXEXECUTE which was only set, never testedTor Lillqvist2-3/+0
Change-Id: I18a9355bb902b19f0eeecb26d33eba4fb25db8cb
2014-10-02coverity#1242506 silence Arguments in wrong orderCaolán McNamara1-1/+1
order doesn't matter one bit as far as I can see Change-Id: I55aa5d23d9865a47ef4dcda9d3e19863794a18c9
2014-10-02coverity#1130190 'Constant' variable guards dead codeCaolán McNamara1-1/+1
Change-Id: Ifc462622919c8247c1f4ff8304f3107a23ef1c49
2014-10-02coverity#1242475 no point calling SetText with GetText resultsCaolán McNamara1-1/+3
Change-Id: I0ebd4a53a0d309b45f5af31adc6fa54a5f143a21
2014-10-02coverity#1242751 Uninitialized scalar fieldCaolán McNamara1-0/+7
Change-Id: Ib56544cf49d53952c7381512b650633abac047e9
2014-10-02coverity#1242872 Unused valueCaolán McNamara1-2/+0
Change-Id: If385b910c1778217d8db881b5d27ea993e27a66e
2014-10-02coverity#1242940 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: I60efbf0cbba81f973a258f1ba90cc910b1abe075