Commit Graph

347594 Commits

Author SHA1 Message Date
Noel Grandin
050d7fc852 editeng: sal_Bool->bool
Change-Id: I7a7b5e9ae1762cace1f87b379b32398b231745fd
2014-03-11 08:18:13 +02:00
Tor Lillqvist
7ad8e33c0f Spelling
Change-Id: I7e55e51f63c3d8b1c778593a08ece7bc122b2765
2014-03-11 08:16:33 +02:00
Kohei Yoshida
dd7787ed75 fdo#75815: Adjust external references here too.
Adjusting external references are much simpler than adjusting internal
ones since we don't need to worry about deleted references etc.

Change-Id: I82111e383e1fc6976ef08c1438c3dd916a249af6
2014-03-10 20:42:27 -04:00
Kohei Yoshida
149b580900 fdo#75815: Write test for this first.
Change-Id: I2a5a1964dc6496aa4db15c9e8644692b460d0527
2014-03-10 20:42:26 -04:00
Takeshi Abe
59b428189d Avoid possible resource leaks by boost::scoped_array
Change-Id: I3a9131d75690e18caec4c328934735a9ca19e7ca
2014-03-11 09:30:49 +09:00
Jacobo Aragunde Pérez
bad51b0613 Fix compilation issue
Change-Id: Iaba5159992463ff075b60092e6540b01604796eb
2014-03-10 23:26:27 +01:00
Tomaž Vajngerl
9e3f0a3184 editeng: register GrabBag as a Char attribute
and hopefully this fixes the tests..

Change-Id: Ib736ee1c0bfcebb2515009ddad7e3c76cb58a095
2014-03-10 23:06:08 +01:00
Tor Lillqvist
b2870f65d4 WaE: add explicit braces to avoid dangling else
Change-Id: I8def1c7859359b76a1258db82776177d65346c05
2014-03-11 00:02:49 +02:00
Jacobo Aragunde Pérez
554a0ca639 ooxml: export combo box controls
Export combo box controls as <sdt> elements. Added unit test.

Change-Id: I9eda25101240ec61f78ede0f0462d3ab8e77b09b
2014-03-10 22:36:17 +01:00
Jacobo Aragunde Pérez
c483e0eeb8 ooxml: preserve locale attribute in date controls
It is stored in the shape grab bag on import and saved back on export.
Defaults to "en-US" if not present in the bag.

Added a check for this attribute in the unit test.

Change-Id: Ib9c74f120628dbfc5e035500424cbad8caed53fe
2014-03-10 22:36:17 +01:00
Jacobo Aragunde Pérez
e172825b53 ooxml: preserve dateFormat for unchanged date controls
When saving a date control in a docx document, we were overwriting its
date format with "dd/MM/yyyy" because it's tricky to support all the
possible combinations. Nonetheless, there is no need to overwrite it
if the date in the control remains unchanged during edition.

We preserve the original date of the control, its date format and the
formatted date string on import, and we compare the date in the
control with the original one on export to check if we can write the
old values or we have to re-generate them. Only in case the date has
changed the format will be reset to "dd/MM/yyyy".

We had to add an InteropGrabBag field to the XControlShape because it
didn't have one, unlike other shapes.

Unit tests were modified to check that the dateFormat field is
preserved unchanged.

Change-Id: I01e5c990e90ff190b5a6d7ea3853e049ff24ef0a
2014-03-10 22:36:17 +01:00
Jacobo Aragunde Pérez
e8e4ba0b68 writerfilter: DateFormat member in SdtHelper as a string.
Change the type of DateFormat member of SdtHelper class to a string,
and move some logic from DomainMapper to SdtHelper.

The string will be useful to improve the date control exporter later.

Change-Id: I0da05a59e15143027f1c5805466e9f465d7ac069
2014-03-10 22:36:16 +01:00
Kohei Yoshida
c1dc7576c1 fdo#74747: Correctly inspect formula result value for xlsx export.
Change-Id: I757a8eb371b432970885e2fbd6aea9dd965ab5c0
2014-03-10 17:28:54 -04:00
Kohei Yoshida
aa5ad7b809 fdo#74747: Make use of cached string formula results.
Just like we do with cached numeric formula results.

Change-Id: Ib8b311b540caeb47d8c2162a456f7490c5882ad5
2014-03-10 17:28:54 -04:00
Kohei Yoshida
304e6144c6 fdo#74747: Test cached numeric results too just to be safe.
Change-Id: I00c68694859fdb9a2f31f50cb3c63984ed146146
2014-03-10 17:28:53 -04:00
Kohei Yoshida
c59b3d6c5c fdo#74747: Write test for this first.
Change-Id: Ia528904405cbb698b9cf08d4a8531c60780e0d9e
2014-03-10 17:28:53 -04:00
Tor Lillqvist
3973ecfe00 Bin a dead ifdef
Change-Id: Iaebfff208767ce5032f94676f180999720b20fae
2014-03-10 23:25:32 +02:00
Caolán McNamara
7c6c1bae37 drop now unused resource defines
Change-Id: I628673db82f05a92478bdab46957885b1953b4bd
2014-03-10 21:16:57 +00:00
Caolán McNamara
6ea106e95a convert pivot filter dialog to .ui
Change-Id: I795d296bae700d1e3a273fbe71fc842d145c5138
2014-03-10 20:55:33 +00:00
Caolán McNamara
a0f95f9a58 Updated core
Project: help  c0f068348420e4ef59842aaa4a9786aefabb3a83
2014-03-10 15:55:12 -05:00
Miklos Vajna
4c0fa3ea2d unused oox::core::Relations::getRelationsFromType
Change-Id: I42e0ebd92d804c34cda42a05b91f45970a22fbe2
2014-03-10 21:43:37 +01:00
Eike Rathke
0abe86ca86 round to multiple of absolute significance, fdo#71720 follow-up
The new functions FLOOR.PRECISE, CEILING.PRECISE and ISO.CEILING always
round to a multiple of the absolute value of the significance given,
returning the mathematical floor/ceiling in all cases.

Also changed the test doc to use some meaningful values for these
functions.

Change-Id: Id5a26092838765143e2d308afa49e7119107dac5
2014-03-10 20:56:02 +01:00
Tor Lillqvist
0093363835 WaE: unused variable 'aPropertyName' [loplugin:unusedvariablecheck]
Change-Id: I8c95ca06e2a688811310d62470c4173d30d20c91
2014-03-10 21:39:38 +02:00
Markus Mohrhard
7600e76609 add export validation tests for chart2
ODS and DOCX are still disabled

Change-Id: I2ce30df5fe8977c83a77ca210d79530423bef76e
2014-03-10 19:46:04 +01:00
Markus Mohrhard
a49a9dab31 fix one more ODF validation error
Change-Id: I265ea970043a954e2e60234d4b3ff90956c939ec
2014-03-10 19:46:04 +01:00
Markus Mohrhard
4c7116413a fix odf validation errors around new chart regression curves
Change-Id: If67207abb204b5aca8365737088437b12ac6eaf1
2014-03-10 19:46:04 +01:00
Kohei Yoshida
ca8ca8c287 fdo#75950: Just set the right grammar and be done with it.
Using the Excel A1 syntax with custom opcode was probably a hack back
in the day.  These days we can just set the right grammar and expect the
compiler to do the right thing.

Change-Id: Iae98f9f09a7da0b7b9549e06308d5d313bbff1ea
2014-03-10 14:24:52 -04:00
Kohei Yoshida
5f5cce2ca3 fdo#75950: Add test for this.
Change-Id: I92253daf4793b50eb2928a1e368fa6231d2f285a
2014-03-10 14:24:51 -04:00
Markus Mohrhard
ed3fc457e1 add strict OOXML pptx import test
Change-Id: I2e4f17b7b7ab1e14c5cb0f6ce90e771d7c20a5c8
2014-03-10 18:17:21 +01:00
Markus Mohrhard
2ce06d07bb test case for strict OOXML chart import
Change-Id: Ie000dda7b04615c2e79376c5da5dc96b4ea40db0
2014-03-10 18:17:21 +01:00
Markus Mohrhard
2f59eae88a remove whitespace
Change-Id: Ie03ffe6e02fe7c4d67a5a6752bc6fa24377da7cd
2014-03-10 18:17:21 +01:00
Tobias Lippert
e955433c35 Use SfxStyleSheetIterator to iterate over style sheets in sd/stlsheet.cxx
It is not possible to access n#708518. We must hope that this
is not a regression

Change-Id: I4500d72cc7d6fc488fb015aa8b7907238fa09ac0
Reviewed-on: https://gerrit.libreoffice.org/8484
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-10 12:10:15 -05:00
Stephan Bergmann
f52ae6a8da Simplify use of OUString::copy
Change-Id: I2220ae614d8bc2f231947ec9336ef42e0e9398f1
2014-03-10 18:01:22 +01:00
Tobias Lippert
0b291d42e7 Use SfxStyleSheetIterator to iterate over SfxStyles in sd/pptin.cxx
Change-Id: I99534efdd52644882f2e2960bdafce58bf632804
Reviewed-on: https://gerrit.libreoffice.org/8483
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-03-10 11:52:41 -05:00
Stephan Bergmann
136f1ad5ed xmerge: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I3ac9ca0329ceb06b09515b2f063ebf371f944dd6
2014-03-10 17:40:00 +01:00
Stephan Bergmann
11b205d0dc wizards: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I9ac8fc460fbdb957f3cae4c2cde42962daca0052
2014-03-10 17:40:00 +01:00
Stephan Bergmann
a3cdc0c68b unotools: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I99cea658b20cf342f503f61c1cb91a8e29abf1ad
2014-03-10 17:40:00 +01:00
Stephan Bergmann
c7d2ed40de ucbhelper: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I7797ba7fdc47a5f8d2453e839d8644bf125652bd
2014-03-10 17:40:00 +01:00
Stephan Bergmann
a3858b40f3 ucb: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ifece71871e3af4021f885c5dac1b6c406d2962b2
2014-03-10 17:40:00 +01:00
Stephan Bergmann
2b0cfed33f toolkit: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ibe481aebad026f8c182052f1327bed8a1054cf7a
2014-03-10 17:39:59 +01:00
Stephan Bergmann
2f67d67cf3 testtools: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I2ab505962c64711d72f2a6b4cdebaef2f1bf4439
2014-03-10 17:39:59 +01:00
Stephan Bergmann
bc75f70b6a sw: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I2cdc80489a1325a9c956dea4689fac1e9184df1b
2014-03-10 17:39:59 +01:00
Stephan Bergmann
3b0b4ac5fc svx: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I520563a98c1285fed97174d2aaedfdd042ca699f
2014-03-10 17:39:59 +01:00
Stephan Bergmann
62fae8bda8 svtools: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I2534ad4a720dd5d13324ac6fb19b8676ae50ff4e
2014-03-10 17:39:58 +01:00
Stephan Bergmann
ecc65fb2df svl: simplify deprecated XTypeProvider.getImplementationId
Change-Id: Ib1e59f755e0472efe0448d1976cdfba13c64ff18
2014-03-10 17:39:58 +01:00
Stephan Bergmann
5bce6e34cd stoc: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I57eca2dcf316232c26c528015c4ba18ba3c4760d
2014-03-10 17:39:58 +01:00
Stephan Bergmann
af27704141 sfx2: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I7d98f0d3f101d7441e83d37f0ee36a74b991a996
2014-03-10 17:39:58 +01:00
Stephan Bergmann
8150f5064f sd: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I95566d52c39b8cc3544e4b39620ec2be81964aae
2014-03-10 17:39:58 +01:00
Stephan Bergmann
55461af2bd scripting: simplify deprecated XTypeProvider.getImplementationId
Change-Id: If0d9a6f1c56dc560df078eb59313aaba393ee372
2014-03-10 17:39:57 +01:00
Stephan Bergmann
a96b9043ff sc: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I4ecb4db1fdebf6f5f29262474d1e7cc490792a7f
2014-03-10 17:39:57 +01:00