Commit Graph

6885 Commits

Author SHA1 Message Date
54ca9821b2 fix one more relation type for OOXML strict
Change-Id: Ia63309271ac225883540ca0453fc5da21844d3ad
2014-03-02 17:56:14 +01:00
3e82e55241 no need to add another layer of macros
Change-Id: I49992559a7d10127d55dbf0c7e257c86619fd8d6
2014-03-02 17:56:14 +01:00
dff29fadfe import date cells from OOXML
Change-Id: Id0b9ec034d559d489ca4ee2d1d6aca1bdf1beb9d
2014-03-01 16:36:51 +01:00
e34870c239 support OOXML strict documents in Calc
Change-Id: I277d76aeec28e173d913ccc1506464afe4d09c6d
2014-03-01 16:23:09 +01:00
e1b49cd30e remove unused code ImportExcel::GetLastFormula(short)
Change-Id: I0f2f4f1ea4c051e6a59f486effe756754005ceec
2014-02-28 08:32:03 +02:00
602ca93561 coverity#1187684 Dereference null return value
Change-Id: I3b8652b2a5f1a8cfcda46774890de4eac5c5583b
2014-02-27 12:58:46 +00:00
3a22310bd2 coverity#1187683 Dereference null return value
Change-Id: I57f459ed5ca3634109e986988069bc485bdcb7cd
2014-02-27 12:58:46 +00:00
38c143c1d7 coverity#1187682 Dereference null return value
Change-Id: I3395730a791417ddddfdcec9bca2ee7b9a3d4ec6
2014-02-27 12:58:46 +00:00
39ff662a15 remove unused code ScCollection::IndexOf(ScDataObject*) const
Change-Id: I142bc93cbe1ce6c0462ccc63defbd49e519f7f75
2014-02-27 10:27:33 +02:00
a7e69f7c20 remove unused code ScMyNotEmptyCellsIterator::GetCell() const
and the consequently unnecessary mpCell field

Change-Id: I95061a904bd88daea8c64c9dcfdb2e91f3f3ac3b
2014-02-27 10:27:30 +02:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
5706ff70db fdo#72041: Intern strings as we populate the external cache.
This commit covers ods import and UNO API layer.

Change-Id: I3ad1b7cfefe49575694e2351bcba6e5733b009d2
2014-02-25 20:55:17 -05:00
497a24b22e remove unused code oox::xls::FormulaParser::convertBoolToFormula(bool)
Change-Id: Ib7c5af91e7db78ff41c19b38f7e440f6cd00a089
2014-02-25 15:17:00 +02:00
b428fda3d3 don't access empty container, related fdo#33698
Change-Id: I6deb23c9f5cd1c60e2b478afd67a5196f45d3c43
2014-02-25 10:55:02 +01:00
4917cebdb9 fdo#75304: Set external reference info to ScCompiler.
And remove this excessive const fetish which was unfortunately necessary to
get this to compile.  Setting the container const is good enough.

Change-Id: I2c6cc55a88643a68e065c4518cdf069c247f4f02
2014-02-24 16:05:07 -05:00
76b114f849 implicitboolconversion: warn about implicit conversion of call args to bool
...to be able to find problems like 6e0bdf04add338b7d5b29fc7b3fc9f08cfd5e96f
"sal_Bool arg of SetUseImagesInMenus was abused to squeeze '2' through it"
earlier when converting occurrences of sal_Bool to bool.

Restricting this check to function call arguments avoids too much noise while
hopefully still catching all the relevant problems.

(This check partially overlaps the pointertobool check, so implicit conversions
from pointers to bool call arguments will now generate two loplugin warnings,
but that's harmless.)

Change-Id: I0b03b1d1615aaf8bc18e7a84c56fff3ef9903508
2014-02-24 17:25:05 +01:00
2e9d267c2b coverity#737278 Uncaught exception
Change-Id: I8b9c02d5e87433cb48a7cee37b696d36e453dd52
2014-02-24 12:53:12 +00:00
484af8f1d2 coverity#737277 Uncaught exception
Change-Id: I4bb6964fb585a027ade3540456bf71bdf70d7662
2014-02-24 12:53:12 +00:00
9ee8026d8b coverity#737274 Uncaught exception
Change-Id: I33a22974a9485e4556ed44f990d6d13a8901c511
2014-02-24 12:53:11 +00:00
3907ef9e47 coverity#737273 Uncaught exception
Change-Id: Ib1e7ee8903c9b3e276c9244a6e4b67499f22c661
2014-02-24 12:53:11 +00:00
50ffcf3bd5 coverity#737272 Uncaught exception
Change-Id: Ibab84222db96181b175f58625105af1237e48136
2014-02-24 12:53:11 +00:00
5eb9477445 coverity#737271 Uncaught exception
Change-Id: I3275220925cc81ce5dbf507793e0d74cb88e2ab4
2014-02-24 12:53:11 +00:00
f78dbca682 coverity#737270 Uncaught exception
Change-Id: I7f129c868034df3d56060cc870c335b36a1a6d4a
2014-02-24 12:53:10 +00:00
3d5f2d13df coverity#737269 Uncaught exception
Change-Id: Ib6240c818c6f17df63693aa4fc4a4ca207df27b6
2014-02-24 12:53:10 +00:00
83aa6d8180 Remove some temporaries around calls to SvNumberFormatter methods
Change-Id: Ib03c97a52df120bac1ac9b2b9d2e52431ead1027
2014-02-24 09:08:35 +01:00
b7259532d8 Remove unnecessary bool2any
Change-Id: Ie2caee1d5a7912011d76172539c2f8f37eaee5cf
2014-02-24 08:08:00 +01:00
a53577e6ff Replace deprecated std::auto_ptr with boost::scoped_ptr
Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159
2014-02-24 10:20:51 +09:00
4725fcd8ea OOXML export validation fixes, related fdo#54651
We don't exactly know right now how to fill these elements so just don't
export them.

Change-Id: I78f9c67aaf4cec4dfcae3137ba137121ca005fd9
2014-02-23 06:42:00 +01:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
7330198ad5 loplugin:pointertobool
Change-Id: I3cf7449aa0d874030732ca92f482652e9c024433
2014-02-22 09:11:48 +01:00
180f593fbf fdo#74345: Some shared formulas cannot be exported as shared formulas.
Excel's shared formula has some restrictions that Calc's doesn't have.
So we need to check each shared formula token to see if we can export
it as shared when saving to Excel.  Refer to the "SharedParsedFormula"
section of the [MS-XLS] spec.

Change-Id: I0ffce26700d2773bbd2893743edc6c03682c2ed7
2014-02-21 17:55:47 -05:00
1772d7c878 coverity#738798 Uninitialized scalar field
Change-Id: Ia3ce1ead1a6a607d59a12b900db051146d781c18
2014-02-21 12:40:25 +00:00
39c173501a coverity#738799 Uninitialized scalar field
Change-Id: I9cf880ec159be6404f0919b282e8214d681f2967
2014-02-21 12:40:25 +00:00
b7180bd14f editeng: sal_Bool->bool
Change-Id: Ia9b76985ea0b9c511208b8283c8487c89aa67b88
2014-02-21 12:19:24 +02:00
be5d879b54 cid#708029 Uninitialized pointer field
Change-Id: Ifb61a1db7a0527f4d722a753c0918ef035436997
2014-02-21 11:59:10 +02:00
1c1f42fdba fdo#75130: Export cell borders to xls and xlsx correctly.
Change-Id: Ic629fb4852d2ada9724dfee7618e2436c0fa28a8
2014-02-20 11:30:21 -05:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
8a82602d48 coverity#738800 Uninitialized scalar field
Change-Id: I1cc6aeba09d260bab9d42e8c2b8f752df0bc5b8d
2014-02-20 13:50:00 +00:00
bd8ef7c445 coverity#738801 Uninitialized scalar field
Change-Id: I90c361d9e3077955546f57861fb4d961cc1127b5
2014-02-20 13:49:59 +00:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
b9bd3229e0 don't generate broken XML files, related #i116460#
Change-Id: I5d7f487b787295af6189425601c5d7e829a3db52
2014-02-19 04:45:31 +01:00
e719b2742c Remove <!-- --> in <style> in calc export to HTML
Comment was used to hide <style> contents from old browsers.
No longer necessary for browsers now.

Change-Id: I49290b8dc45db173dc6f29d131d5001be2b27b6e
Reviewed-on: https://gerrit.libreoffice.org/8077
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-18 13:02:52 +00:00
b57bad8422 the string is UTF8 and not Ascii
Change-Id: Ibf9a837ca5689ceae91eff2a081da3b7fe0b9244
2014-02-18 02:25:45 +01:00
cd03b4ac54 fix invalid string access, related #i83611#
Change-Id: I5954f78e10d99a064f83e96282c28c086c7f07f1
2014-02-17 16:44:12 +01:00
8a5c8c251f multiple pivot tables on same sheet OOXML fix (part1), related #i83250#
This just fixes the generation of the pivot table file and the
relationship. It crashed in a dbgutil build because we tried to
overwrite the same stream for each pivot table on one sheet.

Change-Id: If2c9541e38b483ead75fff32d5f6d9e16970e702
2014-02-17 16:44:12 +01:00
9a5ce676ed fdo#74512: Fix the ODS export as well.
Change-Id: I54a2b2f405f9172d2ec5646346ef4e8a7ae27cb2
2014-02-15 10:14:12 -05:00
a357ef4546 fdo#63154 Remove unused solar.h reference in sc.
Conflicts:
	sc/source/filter/inc/lotrange.hxx
	sc/source/filter/lotus/tool.cxx

Change-Id: If6bae56b3afa560a5ab13d6465a80d384e9cccae
2014-02-15 06:04:57 +01:00
48545bb395 fix crash related to hyperlink export, related #i20491#
Export of ooo20491-7.ods as xlsx

Change-Id: I43e1fd6dcb4bfbefea68c0b0a24c7ad0890d9efb
2014-02-15 03:08:18 +01:00
760290d2ce Remove deprecated text attribute from <body> in calc export to html
Text attribute was used to set text color to black. Should be in css and most browsers default to black.

Change-Id: I966057ca97e2622cc51727ab64796fe36a33d6c4
Reviewed-on: https://gerrit.libreoffice.org/8044
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-14 18:11:19 +00:00
5000e64ecc fdo#72390: Let's not skip auto styles from unmodified sheets.
We do re-use sheet XML stream for unmodified sheets on re-save, which
is okay.  But skipping auto style population from unmodified sheets
is not okay because autostyles are shared across all sheets and written
outside the sheet XML streams. Skipping styles from unmodified sheets
could potentially fail to export used styles, not to mention could
cause a crash as reported in the bug.

Change-Id: I73e439f7354e341c2c07e28ecca5452193985860
2014-02-14 11:47:29 -05:00