summaryrefslogtreecommitdiff
path: root/sc/source/ui
AgeCommit message (Collapse)AuthorFilesLines
2014-12-23Don't crash when nIndex < 0Matúš Kukan1-1/+1
Change-Id: I24ba4365d9d5f78e875ea51382c6b1f864b2e5fe (cherry picked from commit e225b0925b371bd33d40d97c240bd3165b628464) Reviewed-on: https://gerrit.libreoffice.org/13631 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-12-15no separator really means no separator, fdo#83027Markus Mohrhard1-2/+1
Change-Id: I612a46701e7447db63f38ed709e8693d0533710d Reviewed-on: https://gerrit.libreoffice.org/13474 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-12-12rhbz#1116534 crash when pasting over a formulaDavid Tardon3-23/+52
When pasting CSV data into existing document, we cannot use the ScImportExport optimization for insertion, because the cells can already have content (a grouped formula in this case). So use appropriate ScDocument functions, even if that means the import is slower. This is a regression from commit 93959db4d8846cfdfb87ab647c4d457fb09bb869 "use DocumentImport for csv import, related fdo#69006". Change-Id: I92f70abca0542d796e3aa674b28a31053fff00d0 (cherry picked from commit bf97980c8d5d5fbc63a08b8834c10fe903152b75)
2014-12-10paste from system from the top left of selectionDavid Tardon1-1/+17
For example, 1. echo -e "5,6\n7,8" 2. select the lines and copy them to clipboard 3. select an area in Calc, starting from bottom right 4. paste 5. select comma as data separator in the CSV import dialog I think most people would expect the data to appear in the selected area, but currently it would be inserted starting from active cell (which is the bottom right cell of the selection). Change-Id: Ief0e05deda18928a832dca2a261f8493ac9a03a9 Reviewed-on: https://gerrit.libreoffice.org/13410 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 781639eb84fc09d0260092238c3f50216f15a3ff) Reviewed-on: https://gerrit.libreoffice.org/13421
2014-12-09Resolves: fdo#86786 take of a copy of the MarkDataCaolán McNamara1-2/+1
so macros that trigger on changed data don't change invalidate interators into them behind our back Change-Id: Ib7e626b4ec3eea3bd0b1f57f17280a008bb4060e (cherry picked from commit 1c43d48c62db766ffdf23e8f20ed07cbd7a660ee)
2014-12-09fdo#84295 change context menu 'Style' entry to 'Format'Yousuf Philips1-1/+1
Change-Id: I177573294643bf9410bb42a3708b719250ff4a0c Reviewed-on: https://gerrit.libreoffice.org/13329 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-12-08Don't treat clew as part of an "external" clcc moduleTor Lillqvist1-2/+0
There is no obvious authoritative upstream for clew anyway, so it causes philosophical problems for distros. For a while, we used to use a zip archive from the "clcc" project on SourceForge that included clew.c and clew.h. (Before that we also just had clew.c and clew.h in our source repo.) So, drop the external/clcc module and have clew.c and clew.h in the source repo again. But this time clew is in a module of its own, not in sc. This re-introduces "No need to have OpenCL optional at configure-time" This reverts commit 764836cb00e8e6dfd2ab48e080a166ec90359e01. Change-Id: I413142f4f9f8399489f9c3e5327132822f07a454 Reviewed-on: https://gerrit.libreoffice.org/13368 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-12-08Revert "No need to have OpenCL optional at configure-time"David Tardon1-0/+2
As long as this requires bundling clcc, not allowing to disable it is unacceptable. This reverts commit 3b0b76462aa54f60bc9823d9c6ef64e5e35c1208. Conflicts: configure.ac Change-Id: I12b3d5e3325bbd03cd98e1fb5139705d694493c2 (cherry picked from commit 764836cb00e8e6dfd2ab48e080a166ec90359e01)
2014-12-07add ReorderParam.mbHasHeaders to include in Undo range markEike Rathke1-1/+19
Undo Sort did not select/mark the original range if it included header row/column. (cherry picked from commit ec1b1af8af7ead149f96c09e16402e66e0973372) umm.. row is row and col is col (cherry picked from commit 413a0655adec3e9364bc94afff638a5a9f88560c) 26c62fa1fc97aa0dd4eda1102422e5f012a126eb Change-Id: Ie4c800e7a44fd910c871731673093400c6400e4a
2014-12-05Ctrl+A and Data Sort took ages to broadcast ALL cellsEike Rathke1-0/+1
... now that also empty cells are to be broadcasted. Set dirty and broadcast only the effective data range as determined by Sort. This is more a workaround, a cleaner solution would be to refactor the SetDirty() algorithm to iterate only through broadcasters and use AreaBroadcast() to notify area listeners. However, this can also be easily backported to 4-3. Change-Id: I6d68ca0088cec6a8328a3e93364ac928ef69babe (cherry picked from commit 9a568c41ccd1ccf6073758973da5914a44f629d2)
2014-12-04removal of font name, font size and text alignment from context menusYousuf Philips1-14/+0
apply the change made for writer in fdo#81132 to the other modules Change-Id: Ic7f3252048be070c7e4d5e6ff1b7463b5af9d489 Reviewed-on: https://gerrit.libreoffice.org/13214 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-12-03remove boolean parameter default from ScDocument::SetDirtyEike Rathke5-6/+6
... and force the caller to make a decision. In fact some needed to include empty cells. Change-Id: I82b6ef72f7ecda6543b3cafc70f475519870b471 (cherry picked from commit 135b8d6466ade1e8724e604f705f95cecf4c4881)
2014-12-02fdo#86762 broadcast also empty cells after sortEike Rathke1-1/+1
Change-Id: Ie275a754c530d6039ed14304900dd71416f36e46 (cherry picked from commit 08793e08c7e9cefe594c49130f782725e386c463)
2014-12-01fdo#84293 move clipboard functions to the top of context menuYousuf Philips1-60/+60
Change-Id: I3be93178a9b4ba5ecfcb328a8235d2ae2cb17bcd Reviewed-on: https://gerrit.libreoffice.org/13216 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit f1da0cff2f67b0c66ec9e3cc5d9855b591eb8648) Reviewed-on: https://gerrit.libreoffice.org/13248 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2014-12-01For external data sources this variable can be null, fdo#83534Markus Mohrhard1-0/+3
Change-Id: I8c47cf078b4772fcdba0993880740c22114f1b45
2014-11-28set only valid positions from ScExtTabSettings at ScViewDataTableEike Rathke1-4/+13
Some address fields of ScExtTabSettings are initialized invalid and maybe kept invalid, on purpose, so take care of that and use only the valid fields. Change-Id: I37cbf8ff49c6ccf38bfac3e1c8c6492ac7bad61b (cherry picked from commit 8bc56801af0540c0496c1f8ddd335578a8791017)
2014-11-28sanitize viewdata col/row valuesEike Rathke1-7/+4
Change-Id: Iec51b032c96189b20cd43934c477b587da3011a7 (cherry picked from commit d042bef351af4649e656bfb8c60273149e5daeb5)
2014-11-28Fix OpenCL-less build harderTor Lillqvist1-0/+12
Change-Id: I1627f534505c735455c50f9b4f6e4d1c698ab9d2
2014-11-28Fix OpenCL-less buildTor Lillqvist1-0/+12
Change-Id: I8e049a6df5946344110b38887301d186991a475d
2014-11-28Add the "Test" button backTor Lillqvist2-4/+5
This functionality is Calc-specific and will stay in the Calc part of the options. Let's not give the false impression that it would be going away. (How it looks and works now is not final.) Change-Id: Ic2f783a6fd07de89eec7d7e685364dad71243b4b
2014-11-28Work in progress: Move Calc-independend OpenCL configuration out of scTor Lillqvist3-229/+15
Intermediate commit. More changes will follow: The device selection logic needs to be moved, too. (And cleaned up.) Instead of the separate formulacalculationoptions dialog we should simply have a normal options page for those OpenCL-related settings that will remain purely Calc-specific, like the formula opcode subsetting. Change-Id: Id60d95e80d377cbbf5780beb473b221bce06b5e5
2014-11-28Make whether to use OpenCL or not a global optionTor Lillqvist3-34/+5
Add a toggle to the "General" page. Change-Id: If35b1472032706b09a3bc3499c55cbd3ac2e13ac
2014-11-27remove SAL_DEBUGEike Rathke1-1/+0
Change-Id: I08cbc7bab69daa19dfac1a1b27113fb87bc7a272 (cherry picked from commit a02a54f51367f276544f45e67023338a32d22ee6)
2014-11-27fdo#86169 fix completion of function name crashWinfried Donkers1-8/+15
function names with dot or underscore were not completed correctly, leading to incorrect results or even crashes Change-Id: Iacb6af29c609ab39746185c71d4443537bf46b5e Reviewed-on: https://gerrit.libreoffice.org/12380 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 5456abc4d734583664a55c01a0e750e3051b03c9) Reviewed-on: https://gerrit.libreoffice.org/13153
2014-11-25fdo#86708 paint after Undo of SortEike Rathke1-0/+3
Regression of 10fc138307afb4b39baddb0d56eb8e986e5d29ea that exchanged the PostPaint with SetDirty, but the paint is also needed. Change-Id: Ic3e81fa106f405568effaed71ab33b575b4c5c5c (cherry picked from commit 5cec4ea827570a5bb0a368025f3733b841107d07)
2014-11-25Adjust ref undo to ensure group area listeners are used.Kohei Yoshida1-15/+23
When undoing row deletion (and possibly other similar undo's). And write test for it. Change-Id: I04b4fd9932f4236f124dcd25967355c6055dec33 (cherry picked from commit 0dae7466fff1e742543ef7512b7dd22472c75624)
2014-11-24Reduce the amount of data by an order of magnitudeTor Lillqvist1-7/+7
Change-Id: I4a1deb2c1a0cfe67faef6a0d2e3d355b475eb9f0
2014-11-24Add AVERAGE testTor Lillqvist1-0/+6
Change-Id: I144858631f229685284622eb9975a168e61ff6c5
2014-11-24Add MIN and MAX testsTor Lillqvist1-0/+12
Change-Id: Ia8d5fdeb1e03009035136edeab991442b7d91c4b
2014-11-24Fix fencepost errorsTor Lillqvist1-13/+19
Change-Id: I4d22d535368569631be9c016f74b7c19b9019955
2014-11-24The initial value for PRODUCT should obviously be one, not zeroTor Lillqvist1-1/+1
Change-Id: Id054d66e716fb5b176b687afc5d4121f3fa13765
2014-11-24cid#1255906: Unchecked return valueTor Lillqvist1-1/+1
Change-Id: I94696b3da73eb74a04b531ee8a93854208cddbec
2014-11-24Add new-style test generation for SUM and PRODUCTTor Lillqvist1-151/+90
Intermediate commit, still a bit buggy. Also, bin the old code that was ifdeffed out. Change-Id: I747c1864e4858672f0fe0512215405885e52c3b5
2014-11-24Some of our supported compilers still don't have 'override' it seemsTor Lillqvist1-6/+6
Change-Id: Ie3ca1636657b90fd5bc193aa7595f95f44d43915
2014-11-24Re-factor the OpenCL quality test spreadsheet generating codeTor Lillqvist1-9/+311
Be more elegant, avoid hardcoding stuff, use more C++ features. (Not complete yet. Only did the math and trig functions and arithmetic ops so far. New style test generation for AVERAGE, SUM etc not yet done. Old code still left in #if 0 for reference.) Change-Id: I50068852eacf7f0212b2a7ea077021713c8e9978
2014-11-24Mark InsertTable SC_DLLPUBLIC, will need it in next commitTor Lillqvist1-1/+1
Change-Id: Ia105bc5348c3745398ea0e90cb142c3282d688f5
2014-11-20Add string for transl. and "Test statistic" for Chi-Square TestTomaž Vajngerl3-33/+67
Change-Id: I711c70a56021dfbba867e38a32331e662a6bb9d4
2014-11-20One more IsMapMode() -> IsMapModeEnabled().Jan Holesovsky1-1/+1
Change-Id: Id8e5ca61eedb7607b5ef9d7e67bee47c87d4990b
2014-11-20Use regexps in the OpenCL blacklist/whitelistTor Lillqvist2-20/+8
Drop version number bounds, use regexps instead. Not entirely ideal, but as vendors are free to put arbitrary stuff into the driver version string (part of which might be numbers, part free text, part significant, part just informative), just comparing against lower and upper bounds with strverscmp() was not ideal either. Change-Id: Ic4ef4d8e15f79f1c96e6e03f6c01e62ae92dc2fc
2014-11-20Add tests for vectorized binary ops + - * /Tor Lillqvist1-5/+37
Change-Id: I0ea36081416ba3b44e57e12b172c00fa27d4e653
2014-11-19Test also MIN, MAX and PRODUCTTor Lillqvist1-6/+23
Change-Id: Ibbc4c65271142b63c85d08ab4c9162ba96d32b6a
2014-11-19Resolves: rhbz#1165444 abrt crash with NULL pViewCaolán McNamara1-5/+2
Change-Id: I37f02f16209f274cf0358defba6bfa109948990f
2014-11-19Don't use OpenCL for RAND by defaultTor Lillqvist1-0/+4
The current implementation from 60ae598d537c14283109e1c6de22ec43a0147bcf is so broken it isn't even funny. Change-Id: I962d2643d21283340646893bb7892fb2a3d0c2e3
2014-11-19-Werror,-Wabsolute-valueStephan Bergmann1-1/+5
("using integer absolute value function 'abs' when argument is of floating point type") Change-Id: I8c091049b44dd44ec44124055c160a024ec658a5
2014-11-19Generate OpenCL test doc programmatically, first versionTor Lillqvist1-0/+115
Tests RAND, SUM, AVERAGE, SIN, COS, TAN, ATAN, SQRT, EXP, LN at the moment. More will be added. Does not yet automatically add to black/whitelist. Change-Id: I2ca24632630937ee5559fc86453e40178e89973f
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18Add a 'Test' button to test the machine's OpenCL implementationTor Lillqvist2-0/+13
Does not yet do anything, but will essentially run a "unit test" of the OpenCL functionality required by the default subset of opcodes. Change-Id: I230f6232c90562ea56057347fb0dc088f98c215d
2014-11-18Dedicated listener type tailored for formula groups.Kohei Yoshida4-8/+8
Right now, it's only used when loading an xlsx file. But eventually this one should be used everywhere. Change-Id: I216c3a9a33c4b8040e8284d59299e0637471fb50
2014-11-18fdo#86018 Don't do anything when clicked on placeholder in statusbarSamuel Mehrbrodt2-6/+0
No idea why this code got executed in sw, it has no action in sd and sc. Change-Id: I1d2b4b049f6ae6d117e7bf3464ae993c6951f1dc Reviewed-on: https://gerrit.libreoffice.org/12314 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18fdo#86289 rename 'Page Preview' to 'Print Preview' in toolbar names and popupsYousuf Philips1-1/+1
Change-Id: Ifb4254a044b1aa15b1c3e09d7f662daaf6eb61d7 Reviewed-on: https://gerrit.libreoffice.org/12502 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>