Commit Graph

2814 Commits

Author SHA1 Message Date
1a91abb451 Avoid invalid premature downcasts
Change-Id: Ifc6d84a63719b141ddc9bd89349d4a605d2b3e00
2014-09-01 17:09:30 +02:00
e96d259313 interpr: ZinsesZins is Compound Interest
There are many more, like ScZinsZ, ScLaufz, ScGetZw,...

And some I can't identify, because my financial vocabulary is limited:

nZr Zinsrate
nZzr Zinseszinsrate
nBw ?
nZw Zinswert
nRmz ?

and many many more ;)

Change-Id: I11c26a8d4519bbd1e8242d27d3815db2bc3fdecd
2014-08-30 11:12:40 +02:00
dcda429221 interpr: fPeriodn -> fPeriods
Change-Id: I21b76d2d121b27c5b4aeb676948786ab91bff0b7
2014-08-30 11:12:24 +02:00
e886f9ad66 fdo#39674: translated German to English
Conflicts:

	sc/source/core/tool/interpr2.cxx

Change-Id: Ib063cafa895abd7d792ca068d727ea161946679c
Reviewed-on: https://gerrit.libreoffice.org/11184
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-30 03:55:44 -05:00
5605a36a31 fdo#39674: Improved translation
Conflicts:

	sc/source/core/tool/interpr2.cxx

Change-Id: Ib80472a1670b61fdea61bdee4d52b19e28b85d63
Reviewed-on: https://gerrit.libreoffice.org/11192
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-30 03:47:11 -05:00
21c8b5815a added Lithuanian "LTL" to EUROCONVERT(), CONVERT()
Change-Id: Iefde129177df827c4b6508ff190f20e1e1973221
Reviewed-on: https://gerrit.libreoffice.org/11088
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-08-24 06:30:11 -05:00
75aad687cb resolved fdo#82936 do not clear the 3D flag on refupdate
Change-Id: I2ae1368a2ffc20e988ff3ab66590a9f98902b862
2014-08-22 13:03:52 +02:00
07b18860ae out-of-bounds string access
... when parsing  ='foo'#  with no character following.

Change-Id: Id65fce721cb47a4d3c947c677323bdcaa2ce957f
2014-08-22 00:16:15 +02:00
fe4d72b563 it's about time to write GOALSEEK as ODFF ORG.OPENOFFICE.GOALSEEK
Change-Id: Ie5a0464b49baae62e217e87f4d0040151f3aa8a5
2014-08-21 15:43:09 +02:00
7c6a82d66e write COLOR function with extension namespace
and add to Excel import/export maps so it survives saving in that format

Change-Id: I3a8e07fdd1bded77d4bad60eefffeb0b1dbdd734
2014-08-21 15:10:08 +02:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
a51c423743 Consistency around SdrMetricItem in svx/sdsxyitm.hxx
...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-18 10:55:36 +02:00
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
174e6796df Revert "another memory leak based on release().release()"
This reverts commit 1e9baadcb71cb393864be4e8580a50183cb7152e.

because JunitTest_sc_unoapi now fails
2014-08-15 15:40:06 +01:00
1e9baadcb7 another memory leak based on release().release()
Thanks Michael Meeks for noticing.

Change-Id: I8c27215d3cf4624a19f4fd905758e588b342c6c9
2014-08-15 03:48:25 +02:00
69adec3ec0 correct references after sort, fdo#79441
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-14 23:50:58 +02:00
57c59b2466 warning C4245 signed/unsigned mismatch
Change-Id: Ibff6c806c287a2303cdf3b1942d5d5014a73bd30
2014-08-13 23:01:02 +02:00
0f12b30bec document this makeExternalNameStr()
Change-Id: Ifb3c3ada7cc069d8a85717693265476aa95d9aae
2014-08-11 23:08:44 +02:00
8c23a767d9 write OOXML externalReferences, externalLinks, fdo#45286
This for the first time writes external references (hopefully) correctly
and adds the necessary relationship streams and the externalLink streams
with sheetData. At least Excel 2013 loaded the result without
complaining, so do we.

Change-Id: I3d615490a60c5420ae13c0bfc6297642d86a07b9
2014-08-11 20:06:45 +02:00
8d023edc18 Consistency around SdrOnOffItem in svx/sdshitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: Id712c222034ef807ea2d7bc459e78882e948aca6
2014-08-05 08:59:37 +02:00
151fbebf8c Consistency around SdrOnOffItem in svx/sdtagitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
2014-08-04 19:22:55 +02:00
768d32cf5b Consistency around SdrMetricItem in svx/sdtditm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: Ib0234883d441be668700df5ccd0e855973dc5426
2014-08-04 11:29:51 +02:00
42cd7a8a26 fix memory leak around chart listeners
Found by Lsan.

The following pattern leaks memory:

boost::ptr_container x;
x.release().release();

Change-Id: Iaf52e4f2d6a96266fc6afd65ef8027d80c97a08b
2014-07-31 22:14:25 +02:00
27182231ac fdo#78555: Retain formula results when moving a range of cells.
* No need to re-compile RPN token array on reference change alone.  We do that
  when the formula contains one or more names that have been updated.

* Adjust undo code to get it to work without relying on ref undo document,
  which would cause the token arrays to be unnecessarily recompiled.

* Whatever else need to be changed in order to pass all unit tests.

Change-Id: I99e86d23320aca8900fef011da23a9d34e42751e
2014-07-31 09:05:18 -04:00
5e55d5ffb7 fdo#81330: When moving to a different sheet, set 3D flag on.
Change-Id: I16c6e687259635c4d0ac0e5dab0140941b409bc8
2014-07-29 22:35:15 -04:00
32162d327b coverity#735613 Division or modulo by float zero
Change-Id: Ib441ec962abb9f87ca27ea5300f23a0515d3db2b
2014-07-25 11:46:53 +01:00
7515b1a90f fdo#63756 build libxml2 with ICU support
Change-Id: I0523e49e640812be435ba4c97b1881ca253eb2ab
2014-07-20 10:15:25 +02:00
1e6ff8f7f8 XFillStyle -> css::drawing::FillStyle
Change-Id: I6b2fabd72fd34f4ac1b3a18f386c90794bc39ce4
2014-07-19 00:30:37 +02:00
f11118259d coverity#708018 Uninitialized scalar field
Change-Id: Ifde16da72b009f0f32a70ccadab08083f5ff14e1
2014-07-18 15:36:18 +01:00
ebd8d28361 Scope reduction.
Change-Id: I4caeaf3565255ab141fc4951f1bd149a7af6bb8f
2014-07-17 15:40:44 -04:00
efd6fc5e99 Unwind this logic and make it easier to read.
Change-Id: Iaf4ccc8949fb823a7bd3329c0164443220573b03
2014-07-17 15:40:44 -04:00
2202bda95c fdo#81445: Display correct label for empty cell.
Change-Id: I4f3e99b2231f7cd87daa27ef2dc47d3bf37cea57
2014-07-16 19:03:25 -04:00
b409aaa7d6 CID#703984 Unchecked return value (CHECKED_RETURN)
Change-Id: I5b0c633e25326272aed3bae0bf0847839a45d723
2014-07-15 17:31:25 +02:00
9d929e5682 CID#703986 Unchecked return value (CHECKED_RETURN)
Change-Id: I44149fca38e36be6d4302b2af93e72ae9093796a
2014-07-15 17:31:25 +02:00
94b3b4fdf1 CID#703987 Unchecked return value (CHECKED_RETURN)
Change-Id: I0e5bf12f1b874e3aa5428c92487cb58ef16c9cc3
2014-07-15 17:31:25 +02:00
6b84beb590 pDok can't be NULL, remove superfluous check
Change-Id: I639d6e27dd1a44ff878a2e0188fc42e27993b39f
2014-07-15 17:31:24 +02:00
b057b1f569 CID#735794 Dereference after null check (FORWARD_NULL)
pDok can't be NULL, remove superfluous check.

Change-Id: Ica1708f1b2c37bffbe388f22e8ac19a81b144f6d
2014-07-15 17:31:24 +02:00
ffe7faf895 CID#1038293 Division or modulo by float zero (DIVIDE_BY_ZERO)
Change-Id: I9115f34d5957fc974a8f693f97b27f4534344f62
2014-07-15 17:31:23 +02:00
8d3454072d CID#1169815 Division or modulo by float zero (DIVIDE_BY_ZERO)
Change-Id: Id90a018645ae37be600f942a8391dd56ff156b68
2014-07-15 17:31:23 +02:00
adf0d7b1fb Preserve the "end of list" flag for xls round-tripping.
This "end of list" flag determines whether the row insertion was an
automatic insertion at the bottom.  Calc doesn't use this at the moment
but Excel uses it to differentiate a normal row insertion from an
automatic one.

Change-Id: I6b28669d816c54d1dc1e4c106918ba688415788d
2014-07-14 16:11:53 -04:00
d873fd9fa2 Move this header to the source file.
refupdat.hxx is under the ui directory.  Not everyone has access to it.

Change-Id: I3f60761e1105946ed5bd6bddb339ee9a9e7705ad
2014-07-14 16:11:53 -04:00
953d606b99 Make these non inline.
Change-Id: Ieb54e895f334361978cfc22956ab65687fb74adf
2014-07-14 16:11:52 -04:00
5c6ee09126 fdo#81309: Adjust references during sort.
Change-Id: I2b98610f6b774400ecfaffe2905201c27fcab33f
2014-07-13 18:07:14 -04:00
db0a4c2575 resolved fdo#77018 keep external references intact during sort
Needs e463de2a56453a0d2cb0b5b58e96f7639f37cdd1 fix for fdo#79441 to
work.

Change-Id: Ide1cbeb4b25b17b5102977ccbdf8e6dbfcadfc60
2014-07-11 23:19:29 +02:00
4ce9e4a68f Head cleanup - use forward declarations.
Change-Id: Icc4fa0acad77d61200eb77cc70e21866590b658e
2014-07-10 14:13:57 -04:00
1093b900b4 resolved fdo#80195 act on implicitly propagated error, if any
Change-Id: I1d5a55a14fc3e25edc2cddec5b53ed2afa96bd3e
2014-07-10 16:18:01 +02:00
08e3e6c223 fdo#73148 add options to Calc function AGGREGATE
matrix-ranges not supported

Change-Id: I902c78da6d9c7a4a5f8c5e4a7e1678b69d49a6fe
Reviewed-on: https://gerrit.libreoffice.org/9449
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-07-08 10:23:03 +00:00
d92aa2f445 remove SFX_APP() macro that was a mer wrapper for SfxGetApp()
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-27 17:08:04 +02:00
9a741fcad4 loplugin:unreffun: also warn about unused function templates
Change-Id: I4a6280f47ca3c4a77b4e42fe05d79ded7fc30ef1
2014-06-27 07:51:51 +02:00
3c6e378fd8 Make these non inline.
Don't do this please...

Change-Id: Id90490622bca10beabf7a1c92e51e55bc72a1db8
2014-06-26 23:26:42 -04:00