Commit Graph

60 Commits

Author SHA1 Message Date
e99535df4d remove executable bits
Change-Id: Iec785ae538de81325812b1e6fe33115789b39770
2014-08-17 05:50:13 +02:00
5c5f083186 Another test for radar chart data label export.
This one doesn't support label placement property either.

Change-Id: If1f17a135eabd810033644e27db6b1e5c049daff
2014-08-07 19:32:35 -04:00
3119e04b45 Write test for exporting data label positions for percent stack bar chart.
Change-Id: Idebb56fc96828ec38d5c239c16e5b413a50c837f
2014-08-07 19:01:43 -04:00
3683cddee8 Write test for exporting data labels in area chart for OOXML.
Change-Id: Icbb17f56643f7d89bf739b0f218b2ca8a6309d9a
2014-08-07 14:44:51 -04:00
844d143905 Add test for default data label placement for line chart.
Change-Id: I25cf48703a286470907ccc5415a0fab479aa4b8c
2014-08-07 14:22:05 -04:00
96f890c638 Write test for doughnut chart export of data labels to OOXML.
We must not export label position properties for doughnut charts, else
MS Office would think the file is corrupt.

Change-Id: Icfab257ffb6da945b8add661e6455aa66cc475ab
2014-08-07 14:21:53 -04:00
2f24740766 Add test to ensure that we don't export label position attributes.
At least for 3D bar chart, exporting this would choke MS Office.

Change-Id: Ic6747f3c5502495d8cae734290183ff89b14fc70
2014-08-05 13:26:29 -04:00
0ee728634d bnc#886540: Add test cases for chart background fill variance.
"Automatic" fill in docx and xlsx should be solid white, whereas in
pptx it is no fill (transparent).

Change-Id: I7e64f2f895e4c4ed072a234e622a348599456f37
2014-08-04 12:25:56 -04:00
dbe2da9334 Add chart import, percentage number formats, unit test.
Change-Id: Id1b73c153f4b09ab94446452e7eb096b529473f4
2014-07-29 22:58:16 +02:00
c2fd8c4492 bnc#885825: Write test for this.
Originally it was a pptx document, but switched to docx because reloading
an impress document in cppunit currently mysteriously crashes.

Change-Id: I3e9ba6b9a4dc7d3c0ca1d59a073dc8a4cca4008c
2014-07-26 23:38:56 -04:00
dc4355e517 bnc#881025: Write test for this.
Change-Id: Ifb1f83bbe5f9bb9ecb7fca26f883d1331052f10d
2014-07-07 19:06:22 -04:00
344a596acc bnc#882383: Add chart unit test for GradientName property.
It needs to be set, so that the chart has colors. It was grey before.
The bug was fixed already in aacfd5038d05a02f8b1eade3a5896d3d7e959f3d,
which got pushed sooner, so this commit only changes
the property name from 'INVALID' to 'FillTransparenceGradientName'.

Change-Id: If06899258a4307d583480538338480ba5bb830b9
2014-07-07 17:25:51 +02:00
50a5d6ac3f Better and more descriptive naming.
Change-Id: Ic2e3b14399d2acc91c75922a25dc736b1605c320
2014-07-03 12:05:30 -04:00
d53a9dc1cc bnc#812796: Write test for this.
Right now, we skip hidden data series when importing OOXML charts into
our internal data table.  This of course means that if/when we add support
for hidden columns in the internal data table, we may want to change this.

Change-Id: Ida1b77821fbc2f8f937244576b52521b59d6ab89
2014-07-03 11:50:13 -04:00
994fc8faa1 fdo#54361:Add test case for the chart background
Change-Id: I03f0a45d821b14fe687b3ec7df98f9367adab1f2
Reviewed-on: https://gerrit.libreoffice.org/9978
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-07-03 14:18:13 +00:00
113866583c add test case for fdo#78080
Change-Id: If676eb03f5bd19f8abf13d1d7826d500d51e542e
2014-06-22 05:05:01 +02:00
aac149e4ad fdo#71767: Write test for this.
Not a direct test for the reported bug, but to ensure that the reworked
properties survive import and export.

Change-Id: I6c5a4c98eca5180251f04a24346290dedc44447a
2014-06-20 12:03:06 -04:00
56ca1b7696 fdo#77506: (finally) write a unit test for this.
I've switched from using a Draw document to Writer document due to some
instability with Draw instance in our cppunit run.  The bug is reproducible
either way.

The test is disabled for now, since the bug has yet to be fixed.

Change-Id: I49e0417e1ecbc70f40aab8531237ae98ae58bdd3
2014-06-11 12:00:17 -04:00
81d2c208a4 New unit test for Draw document with chart. Disabled due to weird crash.
No idea why it crashes whatsoever....

Change-Id: Ic46d5a98f21cacb03adb3bc0d6da239bde5d8ce2
2014-06-10 19:48:16 -04:00
9455b4eb4b fdo#79676: Write unit test for this.
Added a whole bunch of missing component files for handling flat ODF.

Change-Id: Ib9d84be14327a1fd9ff64573ba1f6ba90e0bfc56
2014-06-10 10:02:30 -04:00
ee0bb265c9 fdo#78290 : The File gets corrupted when saved in LO
Problem Description: Docx file containing a chart (line chart / scatter chart)which has used a builtin
marker'x' gets corrupted when we save it in LO.The reason was that while exporting LO was writing the
marker information 'x' as 'X' which MS Word doesn't recognize.‒<c:marker><c:symbol val="X" />. Also
the size of the marker was coming 1 less than the actual value. Ex: if size is 7 then it was being
written as  6.

Solution: During export I have made changes so that now LO writes 'x' in the tag information
‒<c:marker> <c:symbol val="x" />. Now the size of the marker is also being correctly exported.

Change-Id: I26b747f9576625bf3acb941322ae418a0bbc6b64
Reviewed-on: https://gerrit.libreoffice.org/9273
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-05-20 05:12:08 -05:00
5d185dc3b4 add test for fdo#78041
Change-Id: I08d30102b2218584af2fb800a657728bec42ec18
2014-05-01 02:31:58 +02:00
a211c75400 fdo77216-Charts-Scattered chart: Chart gets distorted on RT
In case there is some text entered in place of X coordinates for scatter chart
then x coordinates should be taken as 1,2,3....
MS Word does the same thing

Change-Id: I1db0fd64c6ac0f4d5e77a9676812f5e26577ecf6
Reviewed-on: https://gerrit.libreoffice.org/9011
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-04-28 09:51:00 +00:00
4211ce7c62 add file
Change-Id: I45401846ae33e0b26e487093e60d90d128480c60
2014-04-17 09:30:40 +02:00
c47bbfce2d add test for fdo#64722, cp#1000058
Change-Id: Idccff4629b8af84e59d52fb3135e9217d3564cb9
2014-04-05 18:35:20 +02:00
8ac95ba690 add test for fdo#74619
Change-Id: I94ed07b730b976f32ce8572f1ccefa96be0a6e77
2014-03-30 17:08:47 +02:00
b0d99224c7 add test for improved overlap chart export
Change-Id: Id1466f7a95470a7c90a7752971e126d3f4b45766
2014-03-26 23:58:43 +01:00
23b65a84fd fdo#76356 : Docx file contianing chart in footer/header gets corrupted.
-  Docx file with chart in footer/header or .bin file referred in chart
       was getting corrupted.
    -  Embedded file for footer.xml was not grabbaged.
    -  .bin embedded files were not grab baged.
    -  Added grab bag support for both case.
    -  Added UT to check .bin files are grab baged properly.

Reviewed on:
	https://gerrit.libreoffice.org/8674

Change-Id: I221e3867798fc2a3a42f6385d687e80b80a3678f
2014-03-23 11:02:16 +01:00
2b6e395152 fdo#74111 3D Rotation is wrong after Round trip for pie chart
3D Rotation is lost after Round trip for pie chart.
XML Difference:

Original:
<c:rotX val="40"/>
<c:rotY val="30"/>

Round Trip:
<c:rotX val="310"/>
<c:rotY val="0"/>

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I60132fef071e0573b17c35f509f3a74bd4ffcc66
2014-03-12 02:41:02 +01:00
ede99e0daa fdo#75975 crash while saving the DOCX file containing charts
1. Open DOCX file containing Charts
2. Save this file into DOCX format.
3. LO crashed while saving/exporting to DOCX format.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I14d4f2c214ce3513b4bd14831771d72498e4486d
2014-03-12 01:58:59 +01:00
5da51525fa add test for fdo#75510
Change-Id: I76cb1008138f7b79223330d4a24d45a026d1118f
2014-03-11 22:39:39 +01:00
2ce06d07bb test case for strict OOXML chart import
Change-Id: Ie000dda7b04615c2e79376c5da5dc96b4ea40db0
2014-03-10 18:17:21 +01:00
bbaad88a5c Revert "fdo#75200:Libreoffice crash while opening the file"
This reverts commit 0b6a1f2afa7954afcf1f27b066169455ed6cff7a.
2014-03-04 21:17:40 +01:00
9ca4fa05eb fdo#74826: File corruption-Issue related to Series idx & order val.
Problem Description:
- If the document contains more than one charts together.
  ex.Bar & Line chart
- In that case, LO writes idx & order val equal to 0,
  instead of 1 for second chart series.
- After roundtrip, the document get corrupted.

Implementation:
- Added varible to take the series count
  in case of multiple chart.

Note:
- Some of the UT's are failing when --enable-dbgutil is enabled.

Change-Id: I40606b4d69026939fa19ae534dd7b2bb36ec97fc
2014-03-03 13:41:08 +01:00
0b6a1f2afa fdo#75200:Libreoffice crash while opening the file
Conflicts:
	chart2/qa/extras/chart2import.cxx

Change-Id: Icb2a5bc43ef5fd0f307b43bbe8aaf892a043dc5b
Reviewed-on: https://gerrit.libreoffice.org/8127
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-02 15:21:51 -06:00
391220ef21 add test for bnc#864396
Change-Id: I38d77a11acf6684cb583ba3e5ffb80f30f3f2fdc
2014-02-23 01:59:41 +01:00
a05ad6dd36 fdo#74137: Fix for courruption of Pie chart after roundtrip.
Problem:
  - Pie chart with data labels files gets corrupt because of label position is
    bestFit in original file.
  - But after round trip, data labels position gets changes to top, left and right.
    For some data labels postion value is missing.
Implementaion:
  - In LO, while converting data label from model, the position gets changed.
    So we are ignoring this hack for Pie chart.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: Ic51845cd6f39bc905439eea8971e878607d25dac
2014-02-15 06:17:55 +01:00
9d5005a70c FDO#74430: File Corruption due to repetition of docPr Id
Issue :
 - If there is a scenario where a chart is followed by a shape
   (may it be in the footer or on a different page )
   which is being exported as an alternate content then, the
   docPr Id is being repeated, ECMA 20.4.2.5 says that the
   docPr Id should be unique.
 - Two different variables were been used as counters for the
   docPr Id, hence there were repitions in the docPr Id.

Implementation :
 - ensured that a single counter is used to track the docPr Id.

Conflicts:
	chart2/qa/extras/chart2export.cxx
Reviewed on:
	https://gerrit.libreoffice.org/7916

Change-Id: I1c105be184d045ef058423f03259eb8c634fcbbe
2014-02-13 09:55:36 +01:00
18837a11ff a 800 kB file is maybe not the best idea for a test case
Change-Id: Ie59d6e019d140f87a8f5ebb922524a5a2d5218e6
2014-02-12 03:14:54 +01:00
c753c0b937 fdo#74111 3D Rotation is wrong after Round trip for bar chart
3D Rotation is lost after Round trip for bar chart.

XML Difference:
Original:
 <c:rotX val="30"/>
 <c:rotY val="50"/>
Round Trip:
 <c:rotX val="42"/>
 <c:rotY val="42"/>

Implementation:
The RightAngledAxes should set first then the RotationVertical and RotationHorizontal
because the RightAngledAxes is needed while setting Rotation.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I64f3b6e56f8515bf6c3d935c59dfaf1d440dba31
2014-02-12 03:06:34 +01:00
ffb1053b28 fdo#74115 Fix for DOCX BitmapFill for Chart Wall
Fixed import and export for chart wall Bitmap Fill in DOCX
Added UT for the same.

Conflicts:
	oox/source/export/chartexport.cxx

Change-Id: Id066b0e4c2007fcdfdbbfa67b40307463bf0cfe7
2014-02-12 02:46:32 +01:00
a5f0344b41 fdo#74115 Fix for DOCX GradientFill for Chart Wall
Fixed import and export for chart wall Gradient Fill in DOCX
Added UT for the same.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: Ie6caa2b238aeb70f7225145da8c5c78003e73002
2014-02-12 02:40:06 +01:00
1d497297ec fdo#74112 Write Chart Displayunits information back to XML.
During export access properties stored during import
   and write back those. Currently we just support basic chart
   display unit information such as builtinunit, there are more
   properties ex. custUnit, dispUnitsLbl, extLst.
   which are pending.

Conflicts:

	chart2/qa/extras/chart2export.cxx

Change-Id: I87e0a8322fc0b0c3df2b8053b7f29fffea611040
Reviewed-on: https://gerrit.libreoffice.org/7722
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-02-11 23:24:00 +00:00
d6f97891c1 Added unit test for fdo#72221:Fixed for doughnut chart - RT is invalid
Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I3540884f680f5042da8d12865a06e9ce2f2046d8
2014-01-31 04:18:02 +01:00
f6824eb6df Unit test added for fdo#72345 Up Down Bars are missing after Round trip
Unit test added to check whether Up Down Bars preserved after Round trip.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: Ia427410cf76bc8cd998f399da8e9ad1f9712a076
2014-01-16 14:51:37 +01:00
c7cfe0876d fdo#72217 : Fix for corruption area chart with data labels after Round Trip.
For labels under one series, there were child tags created for every
data label individually.
for example, if under one series there are five labels, then under
<dLbls> there were 5 <dLbl> tags created separately.
This issue is resolved now.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: I7ae214f413bc27728df8a3d4cb8f4d703cba2f77
2014-01-16 14:46:37 +01:00
b1e6269d1c fdo#72520 : Exporting sheet external data for chart for docx files.
- Adding external data path relationship for chart[n].xml
     for docx files.
   - Added Unit Test.

Change-Id: If48ed21237433ddf6659454dda95d720aabdb300
2014-01-16 14:41:05 +01:00
cf5c3e97b6 fdo#72304 Write Chart Data Table information back to XML.
During export access properties stored during import and write
back those. Currently we just support basic chart data table information
such as border and outline, there are more properties, which are pending.

Conflicts:
	chart2/qa/extras/chart2export.cxx

Change-Id: Icbc1245fc829f49833a8c307e029c3dd3dc2e0bd
2013-12-19 03:55:05 +01:00
a70dfc34a6 fdo#72306 Axis names were lost after saving file on LO.
While exporting chart "crosses" position values were
  not handled properly in chartexport.
  Fixed this issue by handling "autozero" value for c:crosses.
  Added unit test.

Change-Id: I3489908d4c3d4b41a04debfecf95e65f373649ce
2013-12-19 03:20:40 +01:00
d843d64283 Added OOXML Unit Test framework for Chart module for export.
- Referred functions from sw module.

Change-Id: I3ae90d40d92de0d67623e73e1676dabcc8a413f6
2013-12-13 20:05:14 +01:00