Commit Graph

214 Commits

Author SHA1 Message Date
5b63c12ace n#708518: sd: check that master page matches when setting parent style
In ODF import it happened that the parent style of "outline2" etc.
was always set to the "outline1" style of the first master page in
the document, but it should be the "outline1" style of the same master
page as the "outline2".

(regression from e955433c3574cb602dedba96bc645898f97858bf)

Change-Id: Ie563d5ee5c2040aeb6ca5c8bb25b195e15ea964e
2014-08-29 19:18:42 +02:00
a870b029a0 bnc#822347: Test for bullet character defined as '' - empty char.
Change-Id: Ie771a5e53f04c0cd307d24a8bfc3ab7bc9a3094a
2014-08-28 13:50:48 +02:00
2fa3aed1cb parseXml should return xmlDocPtr instead of htmlDocPtr
Change-Id: Ia9fb79ea40ca840d7328a078e747ad64a63d18f1
2014-08-28 13:50:47 +02:00
ef2668bad9 PPTX import: fix missing document metadata
Without this, the creation / modification date is lost on import.

Change-Id: I0b74ac91aee7b8b3e0bc763247086a3a39816bc1
2014-08-28 11:01:59 +02:00
e99535df4d remove executable bits
Change-Id: Iec785ae538de81325812b1e6fe33115789b39770
2014-08-17 05:50:13 +02:00
47e2fd0dc8 Consistently use size_t and SAL_MAX_SIZE
Change-Id: Ibab89984ec94556ec368653b6db50c6c2e380dec
2014-08-16 21:52:32 +02:00
43856800f0 Consistency around SdrOnOffItem in svx/sdasitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."

Change-Id: Icdeff7f37901f99158bb00de5e912c181bf3e688
2014-08-06 10:20:53 +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
1e6ff8f7f8 XFillStyle -> css::drawing::FillStyle
Change-Id: I6b2fabd72fd34f4ac1b3a18f386c90794bc39ce4
2014-07-19 00:30:37 +02:00
472e34d22f fix build failure
Change-Id: I95af4c2750c01e3e48f6708306b25f774c29e592
2014-07-17 15:47:30 +02:00
461cb8fb43 make the temp file names random in sd tests
All the temp files got the same names for the temp files which might
conflict when two tests try to get teh same temp file at the same time.
Additionally it makes the dbgutil check by Norbert for finding leaked
temp files useless.

Change-Id: I692107f7705787c360247785b8d95daf4199c2a6
2014-07-17 13:22:57 +02:00
82127a86dc Update test data to match my gradient handling change
Thanks to vmiklos for pointing me to the instructions.

Change-Id: Ic95ef443beceb9a30e4179cf2364bd753992c05e
2014-07-16 23:21:05 +03:00
3d76a540f6 Unit test for cell properties, where lastRow is used in table (bnc#887225)
Change-Id: Ia11dadcbedf6acc035b2d86da39a115bdb298591
2014-07-15 14:29:44 +02:00
9feb55b662 make the validation working correctly
We still have ODP validation errors of the form:

Change-Id: Id60df0e07a0b6d3fd2613d5c66698a6cd9b99afd
Error: attribute "draw:fit-to-size" has a bad value. Possible values
are: false,true
2014-07-04 15:59:59 +02:00
4f1b91205f remove unused header file
Change-Id: I78c2462f56fb4b5792f396bb7e0dd2c0fd237420
2014-07-04 15:59:59 +02:00
597189f481 enable ODP export validation in sd export test
Change-Id: I849d2f0d8631cfb91326d80e554c9ce55940abd8
2014-07-04 15:59:58 +02:00
f4dca0bfa5 split sd's import and export tests
Change-Id: I06d5b02ec94c7bb74b64cd210267acf2be1a4931
2014-07-04 15:59:58 +02:00
b5608fd429 extract a bit more code
Change-Id: I24da9b5e8594d34ff7d5c3f958c2fd1c5cad1908
2014-07-04 15:59:57 +02:00
560ef65496 extract some shared code
Change-Id: Idfbbee6dc0bd5a63ae46ea8375270a475ef3521b
2014-07-04 15:59:57 +02:00
a1e8998571 fix wrong operator<< for Color
Change-Id: Iccaf173fc15466f8d0604e3d0e4cd2c790902db4
2014-07-04 15:59:57 +02:00
ed6b8a100c remove whitespaces
Change-Id: I9daea42a433b5032931a722878874917cf37f4d1
2014-06-25 05:41:09 +02:00
9388c45c02 bnc#882631: Do not hide top of the first row when editing text in table cells.
This can happen when proportional line spacing is less than 100%
and "FontIndependentLineSpacing" is set, so just keep the height
of the very first line in case of IsFixedCellHeight() too.

Change-Id: Id231fc1f2373645e5420f877e8c2568ce8a1f099
2014-06-24 20:39:24 +02:00
fc577e4f41 Revert "bnc#882631: keep line visible if proportional line spacing is < 100%."
This reverts commit 339e5d44a2afa0f5309a970f1ff11968103e336a
and commit d1987a3eaccfc3add35e6b9f8307ede857c5468e
"fix sd_import_tests after e42c05c1f96832572e525d85d89590f56f5a29dd".

It would need more work and understanding, so just revert.
Also, the problem with bnc#882631 is somewhere else, though this helped too.
2014-06-21 09:40:04 +02:00
5158f5e9fd fix sd_import_tests after e42c05c1f96832572e525d85d89590f56f5a29dd
Change-Id: Ife852a6c7c360c66a7d7d5b144f18898398505dd
2014-06-17 12:49:14 +02:00
b7f2cad987 Revert "Make glTF support an experimental feature"
Actually make it experimental mode was unecessary on master.

This reverts commit 653bac184f579524bc25a9f40281763a736ae6fd.

Conflicts:
	sd/qa/unit/import-tests.cxx
	xmloff/source/draw/ximpshap.cxx

Change-Id: Ie8747745a9a89ce4d6500a35d15a98e28bda840a
2014-06-16 18:59:25 +02:00
e38acfa15b Reduce test doc size, use a simpler gltf model
Change-Id: I5bd78343728f8a4d68610397a7be328826a0334c
2014-06-16 14:12:39 +02:00
04b7b2c72f Fix gltf export: close plugin element before export fallback
Change-Id: I2e1f27e535ee45259f7bdf783ea5224b2ad559ef
2014-06-16 13:55:40 +02:00
4d8c4e7fe3 glTF import/export: fallback must be the second one inside the frame
The previous solution was good because older LO versions
import the fallback image without changing their code, but
it came out it does not fit to ODF standard so export
fallback image as the second object after the glTF model.

Change-Id: Ib9b2044b1f36b32d980cb79f6dac8dcf94d6209b
2014-06-16 12:59:19 +02:00
9ee69cbd6f glTF export: Use plural folder names
Change-Id: If17628395ede512c00b666efc5511d9711edfb5a
2014-06-16 12:58:52 +02:00
634530620e Fix --disable-gltf build
saveAndReload tests export, which is needed only
when gltf support is enabled.

Change-Id: I08152c12db77ad2fc623f2699784b968378686db
2014-06-15 06:05:14 +02:00
e8fcf1153f Change glTF mime type: {application -> model}/vnd.gltf+json
There is no an accepted mime type for glTF models yet, so
follow collada's mime type: model/vnd.collada+xml.

Change-Id: I1e23a95dbb0caea781dade819f8e08235cb5c1dc
2014-06-12 21:43:36 +02:00
653bac184f Make glTF support an experimental feature
Change-Id: I75e69ba1acafbab8362536f02f4d39a8fc2deed1
2014-06-12 21:43:36 +02:00
fe70101856 Introduce HAVE_FEATURE_GLTF to enable/disable gltf related code
When it is a release build then enable it only on Windows and
Linux.

Change-Id: I7c462aeb75e6ab60eeaa0fa42ca7853a6369b742
2014-06-12 21:43:35 +02:00
98dd0f2bb5 Related bnc#862510: extend handling of txXfrm
We don't actually need to check mbAnchorCtr to change
text spacing. This txXfrm workaround works only with rectangles,
because other shapes' text area can be smaller then the shape
size. So add some condition to avoid using it for
other shapes.

Plus fix typos cause regression introduced in:
53c376d35b7223d53e8c9403390afe53d1f69089

Change-Id: I87917b8e0b2bb97ae1bba773e7dda7f81682736f
2014-06-10 19:08:59 +02:00
f7d51f43de html export: More standard time specification in <meta/>.
Change-Id: I1a62d12531029cc36fb8aeabecb9d92a8af837f7
2014-06-06 21:55:06 +02:00
2f54153491 sd html: Unit test for the metadata export.
Change-Id: I1e38e28b57e816a0829d1a56f2ffcb32d8f93718
2014-06-06 18:25:26 +02:00
46d682eec9 bnc#880763: PPTX import: wrong z-order becuause of wrong import order
importExtDrawings() must be called as soon as possible,
before parser starts to parse the next shape.
Call it when graphicFrame tag is closed. This tag include
the reference to the SmartArt.

Plus fix up import tests.

Change-Id: I9e8d54c2b1afeb78a1122390dc4982d580c152ae
2014-06-06 16:50:04 +02:00
e990e4d145 c++03 vs c++11 enum namespacing
Change-Id: I91be0e7d2b013221b1d47a5cd1e4e75eb16c2b67
2014-06-06 10:06:24 +01:00
639571d52b 2nd part of bnc#870233: import font color from color fragment for SmartArts
SmartArt import ignores some fragments during import if
drawing fragment exists, which seems to be not complete.
In this case font style is blank (white) in data (and drawing)
fragment and the real value is defined in the ignored color fragment.

So first make color fragment parsing work, then apply font
color of "node0" style on nodes of the SmartArt.

Actually, it's a workaround, because "node0" style label
is hardcoded, for a proper solution layout fragment should
be parsed too to get the right style label, but
it interferes with the drawing fragment by now.

Change-Id: I7db89176a07eee928563d42d3896fbd02190dfa8
2014-06-06 10:28:18 +02:00
31650d5b42 1th part of bnc#870233: wrong list style in shapes
Text list styles were copied, without proper
copy constructor and operator. It lad to mix
up list styles and so text font.

Change-Id: Iee7a6c0c1f74322fd7b80e41a262849f948e463a
2014-06-06 10:28:18 +02:00
53c376d35b bnc#870237: wrong text position in grouped list
In grouped list text area does not cover the whole
shape but just a part of it at the top.
To get the same visual effect modify text distance
attribute.

Change-Id: I32f30d0afbc1975f940c4562ec65f46596e97060
2014-05-30 13:45:36 +02:00
a95c7069c3 sd html test: move local vars on top, clean-up
Change-Id: Iac393561337825e316a974801a6061944b8fd72a
2014-05-15 22:11:00 +02:00
c8695c6cce Unify utl::TempFile ctors
Change-Id: I0a781a86804808cebf7756506d9299971c13e2ff
2014-05-14 13:38:23 +02:00
1732919a6e coverity#1209803 Dereference before null check
Change-Id: Ie6435770edc709feba2ad191e00e03d637cf6154
2014-05-09 09:43:15 +01:00
dde833575e tests: add XML and HTML test tools to test module
XML and HTML parsing and XPath asserts are used by many test in
sw, sc and sd modules. This commit moves this functionallity to
test module, where it is available to all modules.

Change-Id: I53ad9c45b24f4c9bf106cb58ea619002968bfeda
2014-04-29 23:57:33 +02:00
b45a12c37d sd: sal_Bool->bool
Change-Id: I3172a42f6b6abe434ffe0475d1201ff50b6c06ea
2014-04-24 10:53:17 +02:00
2ea006fb60 fix sd layout unit test
Change-Id: Ica34592788005cc3c96987b1c6c9625dd6359c76
2014-04-23 16:02:04 +02:00
c79a5f87b1 remove executable bit
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-17 15:11:14 +02:00
25a2eab227 fdo#77027: ODF import: fix wrong version in check for embedded objects
SvXMLImport::LO_4x does not mean 4.0+ any more.

(regression from 92cb21ebeda98c5193c50c4cf7ef3d60611c2a52)

Change-Id: Ib444762c2d6e4d051e99962eaff1b1ed34af983a
2014-04-16 00:33:22 +02:00
3e29b0c456 Remove unused code
Change-Id: Ie16056c7e6716831a0ba61c1f22ded978fb5f3c2
2014-04-15 09:47:25 +02:00