Commit Graph

4422 Commits

Author SHA1 Message Date
f5aeaa3845 bnc#822173: Initial work on exporting pivot cache and pivot table to xlsx.
Still not perfect, but it somewhat does work.

Change-Id: Ic248e20f7ab18a37f56b2034f57551dded956bab
2014-08-28 21:37:08 -04:00
902e3898d3 Make some methods non-inline, and add method descriptions.
Change-Id: Ib8d5fa666827a7f97035ad37d05e305bb920c300
2014-08-28 21:37:00 -04:00
53617c8651 callcatcher: update unused code
Change-Id: Idaed255e4f004ad555ccbd6ba9dc29bf522d3c5f
2014-08-27 10:18:31 +01:00
209cdaa109 coverity#737702 Uncaught exception
Change-Id: Idfc005c1c34c609b7dcaae266cdaf6a15a403e5a
2014-08-17 16:39:19 +01:00
1cf19ea847 don't call ScMarkData::GetMarkedRanges in ScColumn, related fdo#79422
This drops the calls to ScMarkData::GetMarkedRanges by a factor of 1k.

Change-Id: I12b1ab3877120a1fbccaccaa7996cbb7efe948b6
2014-08-16 05:25:32 +02:00
08d4ea4b48 use scoped_ptr instead of shared_ptr
Change-Id: Ic814a2301aaf6e57aa8ca04b837acafb6e4f4566
2014-08-16 00:14:26 +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
986b8dbf76 warning C4373: 'ScTableSheetsObj::importSheet': virtual function overrides...
...'com::sun::sheet::XSpreadsheets2::importSheet', previous versions of
the compiler did not override when parameters only differed by const/volatile
qualifiers.

XSpreadsheets2.hdl defines this as:

virtual ::sal_Int32 SAL_CALL importSheet( const ::css::uno::Reference< ::css::sheet::XSpreadsheetDocument >& srcDoc, const ::rtl::OUString& srcName, ::sal_Int32 nDestPosition )

Change-Id: I286fa542a2124a85d7b835f257865f8a05c23f96
2014-08-13 10:10:51 +02:00
7cc627ff79 update_pch
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-08-13 10:10:33 +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
f20dac7df4 bnc#885548: Write test for this.
Change-Id: Ifbd4502a5e49dfbb60301b935291ed0ce65da706
2014-08-08 11:31:22 -04:00
660931a019 RID_SCDLG_CONFLICTS conversion to .ui
Change-Id: Ibdfa27e834cd8fba0f732233338e5fba699c1e90
Reviewed-on: https://gerrit.libreoffice.org/10778
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-08-06 15:58:47 +00:00
9bac4d413e typo: more then -> more than
Change-Id: I2e477d66f25bde7256938ccb1f95ab26add24922
2014-08-01 23:40:12 +09: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
b2ee0235e8 fdo#80501: Ensure that we notify each listener only once.
Change-Id: If2ce4643ff58c7c2ba326d749698dd5196a108dc
2014-07-30 11:04:49 -04:00
5021f29841 Remove some unused code
Change-Id: Ib1fb5108a858c35a5bbe8ba865e15660639725e3
Reviewed-on: https://gerrit.libreoffice.org/10593
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-07-29 14:20:36 +00:00
7e018afaf7 simplify return argument of SfxPoolItem::GetPresentation
since all two of the actual call-sites only care about whether
it is a valid presentation or not, not what kind of presentation it is.

Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
2014-07-29 11:04:01 +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
a3fc7f2008 fdo#81617: Split formula groups at sort range boundaries.
Otherwise, partially sorting a range may crash, or at best incorrectly
update formula references.

Change-Id: Iefcb86d205d83ccc5b684048bfd9aadabf6e13eb
2014-07-27 14:41:21 -04:00
ae1fb2e921 Dead declaration
DetectFilter impl. removed in
2fcfebf3900ee4df2e2fe39e37d55ee87ab5d6cb.

Change-Id: Ia21199066ac00c1b0ddc40168bcc7f1406cb9ea0
2014-07-27 12:25:17 +03:00
262bde9b3e simplify SfxItemPool::GetPresentation
drop the ePresentation parameter, since all 4 of the callsites use
SFX_ITEM_PRESENTATION_COMPLETE as the parameter value,
and just inline the value into the method.

Change-Id: I42c8eae82837c9f9d4edc886d7c760f57b129125
2014-07-23 13:26:17 +02:00
ae56b364d2 Add a variant of set that takes ownership of EditTextObject.
Change-Id: If5f9122213d2f35aabcc66ca70c3d432120995cc
2014-07-18 15:58:19 -04:00
b92fdaa1a4 bnc#885548: Initial work on importing revisions from xlsx.
Change-Id: Ie0528490d024093cbabf38541fe70be96a9caa2e
2014-07-18 13:13:19 -04:00
efd6fc5e99 Unwind this logic and make it easier to read.
Change-Id: Iaf4ccc8949fb823a7bd3329c0164443220573b03
2014-07-17 15:40:44 -04: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
0b34104ca1 loplugin:saloverride
Change-Id: Ia9a02ea6dfa3e59ff5e8bc7da229793e97f3567e
2014-07-14 11:07:48 +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
e463de2a56 resolved fdo#79441 keep 3D references intact during sort
Change-Id: I9e96d8e7cb99a3c280dd24495eefb9efd6d10888
2014-07-11 18:41:37 +02:00
2a17daf8a1 move the retype strings to sc.hrc
Change-Id: I70bbbac0dff8c64bedcf8a46006378291a7fac23
2014-07-11 11:28:11 +01:00
2df4f9425c sc: syntax fix
Change-Id: Ie3cfad9f39d55095fce638a33ee6383c967d5475
2014-07-11 11:53:47 +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
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
39d5ba2fda Typo in HID for ERF
Change-Id: I5da8029c9b4102472deb2ab1f68ec23b13898e50
Reviewed-on: https://gerrit.libreoffice.org/10038
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2014-07-03 07:09:34 +00: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
ce05c5e4b0 fix incorrect ScAnnotationsObj UNO API, fdo#80551
The used index was a sheet local index but the returned position was
from a global container.

Change-Id: I0b9e9e7e9618c72daf8e6417bca9d3a1cb23abb1
2014-06-27 10:05:45 +02:00
3c6e378fd8 Make these non inline.
Don't do this please...

Change-Id: Id90490622bca10beabf7a1c92e51e55bc72a1db8
2014-06-26 23:26:42 -04:00
671566d061 bnc#882595: Write test for this. Disabled due to VBA not working in cppunit.
Change-Id: Ie70232e56235fcf5a313aadffa269ef843bdee18
2014-06-25 16:40:42 -04: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
01dd299bde fdo#71076: Write test for this.
This was actually just one element of all that contributed to this bug.
Unfortunately it's a bit hard to test the others.

Change-Id: I7a0d88c0b829e7b7859aecfc20df87f6837ecb4a
2014-06-20 09:58:44 -04:00
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04: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
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