summaryrefslogtreecommitdiff
path: root/sc/source
AgeCommit message (Collapse)AuthorFilesLines
2014-08-22resolved fdo#82936 do not clear the 3D flag on refupdateEike Rathke1-1/+2
Change-Id: I2ae1368a2ffc20e988ff3ab66590a9f98902b862
2014-08-22init formula options once, fdo#82183Eike Rathke1-2/+8
Change-Id: I1db4816f4693e35024c6dc6c70585d7b72e68c32
2014-08-22nitpick on comment formEike Rathke3-6/+6
Change-Id: I023f79187aaf6eb943a50516dace2aa229c5a87b
2014-08-22fdo#82183 do not reset globals while loading a documentEike Rathke6-23/+45
Destroying the function list while an instance of the Formula Wizard is still open is a bad idea. Workaround not doing this when loading a document due to a DDE function or external reference being entered in the wizard. Change-Id: I6fa00fb4f442bf7c9410679e446ff460289e4b16
2014-08-22out-of-bounds string accessEike Rathke1-1/+1
... when parsing ='foo'# with no character following. Change-Id: Id65fce721cb47a4d3c947c677323bdcaa2ce957f
2014-08-21it's about time to write GOALSEEK as ODFF ORG.OPENOFFICE.GOALSEEKEike Rathke1-1/+2
Change-Id: Ie5a0464b49baae62e217e87f4d0040151f3aa8a5
2014-08-21write COLOR function with extension namespaceEike Rathke3-2/+5
and add to Excel import/export maps so it survives saving in that format Change-Id: I3a8e07fdd1bded77d4bad60eefffeb0b1dbdd734
2014-08-21add missing parameter flagEike Rathke1-1/+1
in dbgutil build gave: warn:legacy.osl:27022:1:tools/source/rc/resmgr.cxx:701: file:///build/libo/dev/instdir/program/../program/resource/scen-US.res Class: 272, Id: 436. Classpointer not at the end! Resource Stack Class: 272, Id: 25044 and the following value of the suppress flag was taken in place of the parameter flag, which was identical and didn't harm in this case, but ... Change-Id: I951381ef2a5c2d7d7d44892ad5c34ea77ace51ce
2014-08-20Work around unhelpful MSVC error C2216: override cannot be used with inlineStephan Bergmann1-93/+93
Change-Id: I2944b9911b2458bf1c0f1645fd983b635be67bd2
2014-08-20convert some OSL_TRACE to SAL_WARNEike Rathke1-8/+8
Change-Id: Ifb687de25a6da4696e659e27cb34668a9762445f
2014-08-20Bad hack to enforce weakly emitted RTTI for ScValidationDlgStephan Bergmann2-19/+17
...(by inlining all its virtual functions), as otherwise -fsanitize=undefined makes sc require ScValidationDlg RTTI (to verify the cast to ScValidationDlg in the ScValidityRefChildWin ctor in sc/source/ui/view/reffact.cxx) but which would only be emitted in scui (against which sc cannot link). Change-Id: Id9e2bf0719ba3bba35e5ae1f0e58190d9fdb6dd4
2014-08-20ODF export: don't write invalid "group-name" attributeMichael Stahl1-1/+2
Radio buttons are grouped via their "form:name" attribute already. Change-Id: I9f8b27a2904d947c3d4665495d36961e3e41d2c6
2014-08-20vcl: use enum for complex text layout constantsNoel Grandin1-1/+1
Since these constants are bitfield flags, we define some methods to make working with them reasonably type safe. Move the definitions to outdevstate.hxx, since we need the values there, and that appears to be the "root most" header file. Also dump TEXT_LAYOUT_BIDI_LTR constant, since it means the same thing as TEXT_LAYOUT_DEFAULT (ie. 0), and leaving it in causes people to write weird code thinking that it's a real flag. Change-Id: Iddab86cd6c78181ceb8caa48e77e1f5a8e526343 Reviewed-on: https://gerrit.libreoffice.org/10676 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-20Clean up line splicing and indentationStephan Bergmann1-13/+13
Change-Id: I2b9725052aeaeebef84ec9aedba639f6dda537ff
2014-08-20update input bar with new valueEike Rathke1-0/+2
If setting the number format isn't called we need to explicitly update the input bar. Change-Id: I60c4808ce86eb659d3faf92d368c5118ee9673b2
2014-08-20refine current date/time hotkey handlingEike Rathke1-14/+73
Nearing the "do what I mean" principle.. * key date on time cell => current date + time of cell => date+time formatted cell * unless time cell was empty or 00:00 time => current date => date formatted cell * key date on date+time cell => current date + 00:00 time => date+time formatted cell * unless date was current date => current date => date formatted cell * key date on other cell => current date => date formatted cell * key time on date cell => date of cell + current time => date+time formatted cell * unless date cell was empty => current time => time formatted cell * key time on date+time cell => current time => time formatted cell * unless cell was empty => current date+time => date+time formatted cell * key time on other cell => current time => time formatted cell Change-Id: I5025e0d0ea9ac83d1b9e0b130262df6db4693a56
2014-08-20Wa: C4701: potentially uninitialized local variable 'fVal' usedTor Lillqvist1-1/+1
Change-Id: I579205c4cdc3149ef0c1b01daef32155a13d666b
2014-08-19more flexible handling of current date/time hotkeysEike Rathke1-12/+55
Let Ctrl+; current date and Shift+Ctrl+; (Ctrl+:) current time behave more flexible, depending on the formatting (and as such the type) of the existing cell content. key date on time cell => current date + time of cell => date+time formatted cell key date on other cell => current date => date formatted cell key time on date cell => date of cell + current time => date+time formatted cell key time on other cell => current time => time formatted cell Change-Id: I2ccbfbab3c50c36a72c4db4696520e32f94caefa
2014-08-19a date is a date, without timeEike Rathke1-8/+24
And use DateTime instead of manually concatenating Date and Time. Change-Id: I6f9fb988beea2a9a17c976d3b98860c4f9ed063b
2014-08-18Let's not export sheet tab color when it's not set.Kohei Yoshida1-2/+3
COL_AUTO is the default value which is treated as color not being set. The old code would export it as a white color which is not correct. Change-Id: Ib68fccfb228333f2059edc4cfffeed90880ebc60
2014-08-18Consistency around XColorItem in svx/sdshcitm.hxxStephan Bergmann1-1/+1
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: I7ecf827a0713efaecb4b0eb49f9f8c06f8c59091
2014-08-18Consistency around SdrOnOffItem in svx/sdtcfitm.hxxStephan Bergmann1-1/+1
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: Ib461b5d3702e00a9d7cef3229c44e3328c776e1d
2014-08-18drop unnecessary shl.hxx includesCaolán McNamara7-8/+0
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18ErrorBox->MessageDialogCaolán McNamara19-41/+34
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
2014-08-18Consistency around SdrMetricItem in svx/sdsxyitm.hxxStephan Bergmann4-10/+10
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: I3734cb14b6ed8f556af85b234968682a55ac8a4c
2014-08-17coverity#737702 Uncaught exceptionCaolán McNamara1-1/+1
Change-Id: Idfc005c1c34c609b7dcaae266cdaf6a15a403e5a
2014-08-17warning C4800: 'int' : forcing value to bool 'true' or 'false'Thomas Arnhold1-2/+2
Change-Id: Ic438fe098f80e96dd4679dda6e5de93a1ba9dc6a
2014-08-16Consistently use size_t and SAL_MAX_SIZEMatteo Casalin9-48/+40
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16Consistently use size_t and SAL_MAX_SIZEMatteo Casalin14-45/+43
Instead of a mix of sal_uIntPtr, sal_uLong, int, and so on. Also change CONTAINER_ENTRY_NOTFOUND=ULONG_MAX to SAL_MAX_SIZE as return value in case of failure and in the related tests. Change-Id: Ie778a849253b4be84fbcdab9557b7c4240233927
2014-08-16don't call ScMarkData::GetMarkedRanges in ScColumn, related fdo#79422Markus Mohrhard3-5/+15
This drops the calls to ScMarkData::GetMarkedRanges by a factor of 1k. Change-Id: I12b1ab3877120a1fbccaccaa7996cbb7efe948b6
2014-08-16copy conditional formatting for single cells, fdo#82503Markus Mohrhard1-0/+5
Change-Id: I22f239fbbbfa3ac562b860efb990dff10d0e0e24
2014-08-16use correct namespace for table protection elements, fdo#82128Markus Mohrhard3-4/+7
Change-Id: I5b9cb4a76739a0c91597c0470c737439d2b07e4f
2014-08-15Revert "another memory leak based on release().release()"Caolán McNamara1-6/+32
This reverts commit 1e9baadcb71cb393864be4e8580a50183cb7152e. because JunitTest_sc_unoapi now fails
2014-08-15another memory leak based on release().release()Markus Mohrhard1-32/+6
Thanks Michael Meeks for noticing. Change-Id: I8c27215d3cf4624a19f4fd905758e588b342c6c9
2014-08-14fdo#79116 make paste special easier to useThomas Viehmann2-4/+91
This patch adds three short cut buttons to the calc paste special dialog: paste values only (numbers, strings, dates), paste values and formats, and paste transposed. Change-Id: Ie70fbaa28976b2311b1d9cf53b094a5083fb42d4 Reviewed-on: https://gerrit.libreoffice.org/10928 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-08-14correct references after sort, fdo#79441Eike Rathke3-10/+92
5c6ee09126631342939ae8766fe36083d8c011e3 introduced a different algorithm for reference handling during sort. Unfortunately that clashed with the SC_CLONECELL_ADJUST3DREL introduced a little earlier resulting in relative 3D references effectively being "adjusted" twice. Furthermore, in-sort-range range references to one row (or column) were not adapted to the move at all if the formula within the range listened only to ranges and not a single cell. Added collecting and adjusting area listeners for this. Last but not least, external (relative) references need to be treated the same as internal 3D references, making them point to the same location after the sort. Change-Id: I492768b525f95f1c43d1c6e7a63a36cce093fa5a
2014-08-14sc: stupid auto_ptr deprecationMichael Stahl1-1/+2
Change-Id: I7ef7de18c2f03d6dc825c12f14f3607fb64008cf
2014-08-14fdo#75757: remove inheritance to std::vectorTakeshi Abe2-8/+15
Change-Id: I07daec0ced64d0ca6ad2dd06fd19a1c7366e5c31 Reviewed-on: https://gerrit.libreoffice.org/10921 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13warning C4245 signed/unsigned mismatchMichael Stahl1-2/+2
Change-Id: Ibff6c806c287a2303cdf3b1942d5d5014a73bd30
2014-08-13fdo#75757: remove inheritance to std::vectorTakeshi Abe5-14/+26
Change-Id: I265d3a51a4eabee734e7ac15841f56bcae0807e4 Reviewed-on: https://gerrit.libreoffice.org/10916 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13RID_SCDLG_DAPISERVICE conversion to .uiSzymon Kłos5-208/+19
Change-Id: I4194af3033f6591c7a8ca219aebf2ef816edcd63 Reviewed-on: https://gerrit.libreoffice.org/10915 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13fdo#82418 prefer UTF-8 over UTF-16David Tardon1-2/+13
Change-Id: Id2c990d24dc942a6d061146ea88cf53ee29a1c3d
2014-08-13warning C4242: 'initializing' : conversion from 'size_t' to 'sal_uInt16'Thomas Arnhold1-1/+1
Change-Id: Ie5e64701a011768d861607a2e4267d75b995413e
2014-08-12bnc#822170: Let's not even try to export invalid chart objects.Kohei Yoshida3-9/+68
If we do, at best, Excel will complain about the document needing repair. At worst Excel will skip some of the other valid drawing objects from being loaded. Change-Id: If3794d0ae9d8b44b124020bb12b5369dfebc95ae
2014-08-12Don't export builtinId of 54 or above.Kohei Yoshida1-3/+2
Change-Id: I5ab651e0c92ab032d892080f979aa4f53295a8b6
2014-08-12really do not write empty externalReferences element, fdo#45286 follow-upEike Rathke1-3/+19
Xti records exist also for internal sheet references in BIFF. It is not enough to check for their presence, at least one EXC_SBTYPE_EXTERN must be present as SUPBOOK. Change-Id: I5553a28412465d83fd965b09908261141c51ea35
2014-08-12do not write empty externalReferences element, fdo#45286 follow-upEike Rathke2-2/+5
OOXML validation spewed - (xl/workbook.xml:2 col:700) cvc-complex-type.2.4.b: The content of element ´externalReferences´ is not complete. One of ´{"http://schemas.openxmlformats.org/spreadsheetml/2006/main":externalReference}´ is expected. Change-Id: I80552a0e9ffcc201d0462ac20ce37f6657e43587
2014-08-12-Werror,-Wundefined-bool-conversionStephan Bergmann1-1/+1
Change-Id: I6ff5f855becc44d195ea8043e3c7c1a4873617c4
2014-08-11document this makeExternalNameStr()Eike Rathke1-1/+6
Change-Id: Ifb3c3ada7cc069d8a85717693265476aa95d9aae
2014-08-11externalReference and externalReferences are implemented nowEike Rathke1-2/+0
With 8c23a767d926d8d08213f5e2f8e81775c653cbd7 Change-Id: I9ee7a470bcbe42c5d5b4a871e609a0530cc024f8