Commit Graph

1961 Commits

Author SHA1 Message Date
3b856f0287 Use the source dimension name when searching for a dimension.
Otherwise we might miss the right dimension object.  This fixes the bug where
the subtotal function of the second data field was not set correctly when
importing from xlsx.

Change-Id: Id6ecb07b86cf6803a3f6f7604267ce2f5f9a4067
2014-08-29 18:24:32 -04:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
209cdaa109 coverity#737702 Uncaught exception
Change-Id: Idfc005c1c34c609b7dcaae266cdaf6a15a403e5a
2014-08-17 16:39:19 +01:00
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
384cb5ff7b Consistently use size_t and SAL_MAX_SIZE
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-16 21:52:28 +02:00
300845922e fdo#79578: Properly update formulas upon change in db collection.
Update it to handle formula groups correctly.

Change-Id: I009a7fcf3d3fb17ef6951c50534ca6bc1fffc259
2014-07-28 22:08:22 -04:00
2a19718575 move SFX_ITEMS_DIRECT etc. definitions inside the module
These are internal constants, they don't need to be visible to the rest
of LO

Change-Id: I313def85b8c404948ec9ecb3996fed03b32ff9bf
2014-07-24 08:13:04 +02:00
7515b1a90f fdo#63756 build libxml2 with ICU support
Change-Id: I0523e49e640812be435ba4c97b1881ca253eb2ab
2014-07-20 10:15:25 +02:00
5c6ee09126 fdo#81309: Adjust references during sort.
Change-Id: I2b98610f6b774400ecfaffe2905201c27fcab33f
2014-07-13 18:07:14 -04:00
4d15212ef8 Add get/setPart to ITiledRenderable, and implement for sw/sc.
Change-Id: Iec3d6374f029149cadf8fb9c9b16fec90146c31e
2014-07-12 05:19:13 +02:00
fe6311fce7 add UNO API loadStylesFromDocument
avoid opening again a document that is already available
apply to calc - refactoring ScStyleFamiliesObj::loadStylesFromURL

Change-Id: I6b26c91265dcafa73b472bc68ee684ba0733b0ac
Reviewed-on: https://gerrit.libreoffice.org/10214
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-07-11 08:26:31 +00:00
4ce9e4a68f Head cleanup - use forward declarations.
Change-Id: Icc4fa0acad77d61200eb77cc70e21866590b658e
2014-07-10 14:13:57 -04:00
76f7a05fa3 document strange code, coverity#704001
Change-Id: Id6668f47f0549e719010141929b011aa028812d2
2014-07-04 15:59:59 +02:00
6c4e21a234 bnc#812796: Correctly handle static value array for OOXML charts.
We need to pass the role of the data sequence in order to avoid unreliable
guess work when importing static value array.

Also, not all Excel's scatter plots have real numeric X values; some have
textural X values in which case Excel switch to generating 1, 2, 3, ... as
X values.  When importing to our chart implementation, using "categories" role
in such cases instead of "values-x" results in a more faithful chart rendering.

Change-Id: If4bc1f650bb024dcd1b1b36537f457fb38404a78
2014-07-02 20:56:31 -04:00
d528eb158c call the correct GetNotePosition method #fdo80551
unit test is ok on Sheet but fails on Col

Change-Id: I28084118e088838b47b77537b981ebe7422ab722
Reviewed-on: https://gerrit.libreoffice.org/9934
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-02 12:58:16 +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
0ac652bbc0 fdo#39111 - UI inconsistent concerning suppression of output for empty pages
Change-Id: I6017e77e46298b45c7584830178455fe29016209
Reviewed-on: https://gerrit.libreoffice.org/9907
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-26 15:46:36 +00:00
5da5882df4 Add tiled rendering outline to Calc.
(No real implementation yet.)

Change-Id: I67b84b554dbb29db449d8c190ef816645a8bff07
2014-06-25 13:04:33 +01:00
37e6631cc5 remove whitespace
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-06-25 05:41:10 +02:00
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
0b793116de rhbz#1111216 allow to export an empty sheet to PDF
This is to consolidate Calc's behaviour with the other applications,
which always present at least one page for printing / PDF export.

Change-Id: Iedf438618020c1e6d8ded5ac950c8ca2b12ad439
2014-06-19 17:14:48 +02:00
d176340628 coverity#983728 Uncaught exception
Change-Id: Ifa6f0bf05e9a71aa3db6c63291f99dc0665e57bf
2014-06-19 10:26:52 +01:00
edf57ee27b coverity#1223091 Uncaught exception
Change-Id: I7aacf97a32360ea3c7e17e19d7f5e51e96fcc070
2014-06-17 10:57:57 +01:00
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
45f533aee9 loplugin:staticcall
Change-Id: I670fbcd83e368f2821d37a392cbc007b1f4cd55e
2014-06-13 17:54:31 +02:00
a2a1a59a44 fdo#77506: More reliable way to determine label strings.
Not beautiful, but doable.

Change-Id: I6f3b00d620e7d7d19cc05ec4239deeb14d0d5201
2014-06-12 11:27:19 -04:00
ae4da7d36b coverity#1187810 Uncaught exception
Change-Id: Icfd867bbe24ca738ad409001115d1b0470041de4
2014-06-10 13:23:35 +01:00
1979afcc9b coverity#706877 Uncaught exception
Change-Id: I7364afe103f9912b31bde7f4e84baf16633b05f8
2014-06-10 10:48:41 +01:00
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
adc20c3937 compareToAscii -> equalsAscii
convert places using compareToAscii that should be using equalsAscii

Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
2014-06-04 11:52:31 +02:00
9b791f9c31 remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-05-27 08:20:11 +02:00
32e3789816 coverity#1130407 Missing break in switch
Change-Id: Ic4261e6ed9ea44ef8b4fad174b40febe4ff795fd
2014-05-26 10:18:27 +01:00
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
227af32d8c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
2014-05-20 23:29:53 +02:00
ee212bf4db kill some old 16 bit column indices
Change-Id: Ie1c3f3b11ed216b53f3fd385614f6fcb2c38220c
2014-05-20 15:25:18 +02:00
c623612b0b Avoid possible memory leaks in case of exceptions
Change-Id: Icc1e11e173329fd88898a3d13270406fd651eb2b
2014-05-18 23:11:14 +09:00
42af6f9831 Fixes
Change-Id: Iaecba29cb5958787ec2581198943d373e37a3934
2014-05-17 00:35:25 +02:00
280eed820f More fix
Change-Id: Iadb275a3799195a8c2eb57a975315f21d8215b31
2014-05-17 00:33:08 +02:00
f9ed1ec1ba Fix previous commit
Change-Id: I22ded05f328aeb4479c90e79b12729eb3835b3ec
2014-05-17 00:28:44 +02:00
dd33f91581 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part14
Change-Id: Ibccaa2138426c22cd63d273a1b6cdc927ebe80dc
2014-05-17 00:24:22 +02:00
c288b17cc5 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14 23:18:57 +02:00
a921d38ad4 No more SetCompileForFAP(). Use respective flag setting methods instead.
Change-Id: Ib2256ebac8a7e63e7e24fb35d13d47b811bd8e19
2014-05-14 13:15:11 -04:00
28fe3628ed o3tl::default_deleter->boost::checked_deleter
has the same result

Change-Id: Ifbebcfb26c6fc54d03522c924da86837d7dfa3b9
2014-05-12 20:25:40 +01:00
e2f94a8e2c Move this function object to o3tl.
Change-Id: I9d1710fbed3c5753e84ed343c5136ab87909624d
2014-05-12 13:47:31 -04:00
2c71bdd8fd coverity#705842 Dereference before null check
Change-Id: Ia1e62c3c491525ff96774add0a2e1b10c817ac30
2014-05-11 21:06:00 +01:00
df521e3d96 Fix previous commit (sc part)
Change-Id: I1ec7b34c4ac31a5e84e217177a7fb08dfae052d6
2014-05-11 11:29:16 +02:00
bd59628620 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-11 10:16:42 +02:00
2bac61013e fix-includes.pl: sc
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-05-11 01:55:39 +02:00
4975284254 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: I6d15c7869e94b8b6d92b0a4c65bbc5866a657889
2014-05-09 19:21:48 +02:00