Commit graph

1970 commits

Author SHA1 Message Date
Norbert Thiebaud
e84a04273b WaE on mac osx build
Change-Id: Ief28d2563b66754d00fdc09d6d68ea3a73aff22a
2013-05-19 10:45:48 -05:00
Jan Holesovsky
5fe65c0c5e bnc#819614: Fix runaway lines.
Change-Id: I360ec44872dbb555870d7d3fc8a9ed81c95e8c07
2013-05-16 04:57:15 +02:00
Jan Holesovsky
18b9aa7280 Fix length check - it would be out of bounds.
Change-Id: I5430fed06ea1a81a68ddfaafa595d7d5b0167f3b
2013-05-16 04:57:15 +02:00
Tor Lillqvist
cb6d67c21f Spelling "separate" (etc) correctly is hard 2013-05-15 11:14:28 +03:00
Thorsten Behrens
0f15a477aa Fix fdo#64579 Don't assume dsp:dataModelExt has valid DrawingML.
Just don't assume the DSP_TOKEN( spTree ) was seen in input.

Change-Id: Iaabdcafdfcfc995198c1265e975df4dde8e0a39c
2013-05-15 01:31:06 +02:00
Luboš Luňák
bc584fc5d8 detect whether a bezier shape is open or closed
For open shapes e.g. fill does not work. Part of bnc#780044.

Change-Id: Id0ce50e94ae86c0398f06b2a67e3fd13d487ae7a
2013-05-14 19:48:35 +02:00
Luboš Luňák
c2703b63fa remove non-sensical /*static*/ comments
They are presumably meant to say the functions are class-static,
but at the function definition it's pretty confusing (looks like file-static).

Change-Id: I28c69244c9eb7aa3f20f07d8784f3704dc6a57bf
2013-05-14 19:48:32 +02:00
Stephan Bergmann
ddb579666c -Werror=maybe-uninitialized
Change-Id: I320e08d7d83727a93e0644db80943bc2bb896222
2013-05-13 14:17:24 +02:00
Noel Grandin
088e86b865 fdo#46808, Convert some chart2 services to new style
The services already existed, they just needed IDL files

Change-Id: Ia7bdae932c5fb4b47d23afd2bb0756ecc9cbf6f7
2013-05-13 09:38:03 +02:00
Noel Grandin
5d1ad16729 fdo#46808 Convert chart2::FormattedString service to new style
API CHANGE: dropped the following services from the new unified
interface because the current service does not implement them.
    service ::com::sun::style::CharacterProperties;
    [optional] service ::com::sun::style::CharacterPropertiesAsian;
    [optional] service ::com::sun::style::CharacterPropertiesComplex;

Change-Id: I7cb6a5d4e998975b1272f4f4da03feea30cd30b6
2013-05-13 09:38:03 +02:00
Jürgen Schmidt
c623879773 Resolves: #i119889# .pptx table vertical text direction
Set property to cell object if the cell has vertical property. And fix in svx
module by setting cell's vertical property.

Patch By: companycy
Found By: Shan Zu
Review By: jsc

(cherry picked from commit bb8bf7bde59c22776199e791b8cfcbf07992de8e)

Conflicts:
	oox/source/drawingml/table/tablecell.cxx

Change-Id: I58bb1548617c4c1e231280a405d6071ea8813039
2013-05-11 15:09:36 +01:00
Herbert Dürr
1857688e1f Resolves: #i122208# introduce rtl::CStringHash and rtl::CStringEqual
unify the various c-string compares and hashes.

(cherry picked from commit b7e3470a154538a92f0a21b14e726d75723f4a92)

Conflicts:
	oox/inc/oox/export/shapes.hxx
	oox/source/export/shapes.cxx
	sal/inc/rtl/string.hxx
	sdext/source/minimizer/pppoptimizertoken.cxx
	svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx
	vcl/source/glyphs/gcach_ftyp.cxx
	writerfilter/source/resourcemodel/TagLogger.cxx
	xmloff/source/draw/EnhancedCustomShapeToken.cxx

Change-Id: Ib742744077bfb4d38a462d88b44bdef45601b4ae
2013-05-10 12:36:33 +01:00
Noel Power
880da6c7b7 fix userform data aware control import
Change-Id: I86f5cc0c60bba48eaaf40a3471cc0fb22e5e4b9c
2013-05-09 14:11:21 +01:00
Michael Stahl
ed8f9ec2ca oox: fix dependencies in CustomTarget
This breaks on incremental build after files have been renamed like in
38f5717b1d, hope Windows tinderboxes are
happy now.

Change-Id: I292508c242f7e6da1db3693cf54ba11876ac8997
2013-05-08 18:52:15 +02:00
Michael Stahl
38f5717b1d oox: remove Package_generated and Package_tokens
Change-Id: Iab5eb4fbfecea905f4eeb9f1b1f503c1908dadc8
2013-05-07 17:07:44 +02:00
Markus Mohrhard
09d486b897 data label export does not work with bar charts
Excel just removes the chart during import. Additionally we should work
on only exporting the data label information for points that really
contain data labels.

Change-Id: I80aef8effe27c729feb69c25c319ca129dc961a5
2013-05-06 01:36:23 +02:00
Markus Mohrhard
062b9f0bdc remove unnecessary explicit namespaces
Change-Id: Idb6bf5704a3b569ae4ae19d35526f19528ab63a6
2013-05-06 01:36:23 +02:00
Markus Mohrhard
6e2292b3cd map full transparent solid fill to no fill, fdo#64224
Change-Id: I9ec33b347647bfcd6c1411c4db7af51ca597dc8e
2013-05-06 01:36:23 +02:00
Markus Mohrhard
93abb2082a let us be explicit about default values
Different MSO versions behave differently in respect to the default
values. 2007 is not compliant to OOXML and is what our export filter
expects, 2010+ are compliant to OOXML and therefore our charts look
awful.

Change-Id: If301d878a1603ed9835884cfbb9ed9c902526ba0
2013-05-06 01:36:22 +02:00
Markus Mohrhard
a4b6f26148 another validation error in chart OOXML export
Change-Id: I2edd5cb877fdf66926483c866382480f7ae3d36f
2013-05-05 19:44:26 +02:00
Markus Mohrhard
d28d25d090 respect element order in OOXML chart export, fdo#59857
The chart part of the document passes validation now.

Change-Id: I52c946c0ad399038e5f9ffff08a117f2693c55b5
2013-05-05 19:44:26 +02:00
Markus Mohrhard
3ed3d39230 respect element order in OOXML chart export, related fdo#59857
Change-Id: Iecb47635cb8c854ec6c12a12f895972fcf099009
2013-05-05 19:44:26 +02:00
Markus Mohrhard
a927086f9a respect element order in OOXML export, related fdo#59857
Change-Id: I00bb173010419a47ee30c9d6ae1173bb1ea0e370
2013-05-05 19:44:26 +02:00
Markus Mohrhard
010f58c4ef overlap is only valid for the 2D bar chart, related fdo#59857
Change-Id: Ie17ef54a2b2f2058cef97dacd9110a3065f76f68
2013-05-05 19:44:26 +02:00
Markus Mohrhard
16010abe01 respect element order in OOXML chart export, related fdo#59857
Change-Id: Icd40ad5a1a428d6ae0d012b1896a9dd713a4e79b
2013-05-05 19:44:26 +02:00
Markus Mohrhard
e415e070d6 respect order of elements in OOXML chart export, related fdo#59857
Change-Id: I541e04d2f4a3b272894ceb67b4bd970e235b96a2
2013-05-05 19:44:25 +02:00
Luboš Luňák
f13f3b42eb place ooxml shapes properly to paragraph area (part of bnc#816583)
style="position:absolute;left:0" is relative to paragraph area,
not paragraph text area (which is different if it's indented).

Change-Id: I12a1d2b8a68aa3fa9c65b3d469118b5334f83d7f
2013-05-02 17:00:36 +02:00
Michael Meeks
73740b2f75 fdo#60549 - pptx export presentation as well as draw shape objects.
Change-Id: Ibe6e0b9fa55bab7a7d02e55560c1db4c8ed84132
2013-05-02 11:23:48 +01:00
Ádám Csaba Király
7061e8403a fdo#60780, refactor Save a Copy and fix
Refactor Save a Copy, basing it on Export functionality.
SID_SAVEACOPY takes its parameters, and sends a SID_EXPORTDOC
request with them, using SID_SAVEACOPYITEM to differentiate
Save a Copy from regular Export.

Fix storing docx to url, by preventing finalizeFilter method,
in filterbase.cxx, from writing back to the original file's
MediaDescriptor.

Change-Id: I876dbe17e43b26a43f29e797fdb157e31889ee1e
Reviewed-on: https://gerrit.libreoffice.org/3355
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-05-02 09:40:10 +00:00
Aurimas Fišeras
cf685e9299 Update pch
Change-Id: Ia400389ca7c4fbe752e19ca2d38f2fee00f6ee7d
Reviewed-on: https://gerrit.libreoffice.org/3736
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-02 09:26:41 +00:00
Markus Mohrhard
3dc2f24a5d we need to exclude scatter chart for data label export for now
Excel does not like our data label export and removes the charts during
import. I could not figure out what is wrong as the files are valid.

Change-Id: I92458803a48bff1436e7c47ca29d27e487c0642b
2013-05-01 20:29:19 +02:00
Markus Mohrhard
d54aa149bd better to use no overlay for now
We have no way to determine whether the lengend touches the chart area
so let us use no overlay for now. That should be much more in line of
the most use cases.

Change-Id: Idecb0113e47a3f7c925ff8c45238152406ce8954
2013-04-30 21:21:06 +02:00
Markus Mohrhard
0c58dc8655 only export c:SymbolSize if attribute is there
Change-Id: I4f167d1ec6998b27025450e9339d14d94c06e3c1
2013-04-30 21:21:06 +02:00
Markus Mohrhard
bb7dec2fa0 also export point size
The current formula size/250*7 is just a guess based on some test docs.
If someone has an idea how to translate them please tell me.

Change-Id: Ibdd27d52d545ac96882c128485c48a3116eb4467
2013-04-30 21:21:06 +02:00
Markus Mohrhard
2af3650659 export markers to OOXML
Change-Id: I0c2cabc8636b0988bdd779f002c1e7dc1e34b65b
2013-04-30 21:21:06 +02:00
Markus Mohrhard
99b7b41992 export a:noFill to prevent wrong default
Except for the data label issue my test file looks good now. There are a
few more small issues that I should take care of but it looks nice
already.

Change-Id: I4a6097baefe26088d0246f6335246a211ba143eb
2013-04-30 16:41:20 +02:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Cédric Bosdonnat
b399c1a38c n#592908: docx import, fixed handling of w10:wrap
commit f837c4288c moved the handling of
w10:wrap tag in oox, but thus no wrapping was imported any more.

The fix consists in letting the w10:wrap element be handled by writerfilter's
dmapper if the shape has already been retrieved from oox (which is the
case for textboxes). In other cases, make sure that we don't set the
Surround property once again in writerfilter as that would override what
has been done in oox.

(cherry picked from commit 51d5e90b7c)

Conflicts:
	oox/inc/oox/vml/vmlshape.hxx
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx

Change-Id: I8ab158641afcf6b9945c52238e7f5adb9e8b3adf
2013-04-30 09:34:28 +02:00
Markus Mohrhard
dd24f18545 now ooxml files are accepted by Excel again
Yes, a simple test would have answered the question in the comment and
made clear that nanoseconds are not accepted by MSO.

Let's go with normal seconds as MSO does. It seems it also accepts
1/100s but who really needs that for a file timestamp.

Change-Id: Iaec6f9c08dc94d5086b83cb4bf520d0053b71b28
2013-04-30 00:17:30 +02:00
Markus Mohrhard
f9cd73ebe1 remove a few more unused variables
Change-Id: I6c70c000f60e7e6e43bd068ccb98b693b80746f2
2013-04-30 00:17:29 +02:00
Markus Mohrhard
81b9d43167 c:varyColor is true by default in Excel
And another step closer to opening my test file correctly in Excel.

Change-Id: Ib6aa8ddb2f2792513c7263d86865e08fe5f1483d
2013-04-29 16:43:07 +02:00
Markus Mohrhard
5c19f86a07 OSL_TRACE => SAL_WARN in chartexport.cxx
Change-Id: I12ddd18c1b4476d42c097704c2af2d0af4e15a1e
2013-04-29 16:43:06 +02:00
Markus Mohrhard
6ddd7fccdc c:delete is true by default in Excel
One step closer to opening my simple test file correctly in Excel.

Change-Id: I1bfa76a46081ba478e44d8d90d8a91790a9a9ff3
2013-04-29 16:43:06 +02:00
Markus Mohrhard
e81d0c400c change order to allow validation of chart part
My simple test file is finally valid but is still now shown in Excel.
There must be another bug in our exporter.

Change-Id: Ib55e5b32edc3a556e9081b3008df539275dc289b
2013-04-29 00:15:01 +02:00
Markus Mohrhard
3812e99e93 another validation error with OOXML chart export
c:characters does not have an attribute val. The value has to be written
out as normal string.

Change-Id: Icd2c4034918bd223d0c8082a7d137e1ce79a9cfe
2013-04-29 00:15:01 +02:00
Markus Mohrhard
672398d84d order of element matters in OOXML export
this fixes one validation error with documents containing charts

Change-Id: I879963484b1cc00322e8c79bf77dfbbf91869587
2013-04-29 00:15:01 +02:00
Markus Mohrhard
33671ee413 export for error bars to OOXML, fdo#62312
This does not work yet as we have several validation errors in our
exported OOXML chart doc. I have to clean them up before the documents
are accepted by Excel.

Change-Id: I0bba64a9c6cab489199c8e6f04158fea7b953d0a
2013-04-29 00:15:00 +02:00
Thorsten Behrens
d56ba7ee6f Fix bnc#705982 - make animations inside SmartArt work.
With the fallback loading of extDrawing for SmartArt graphics,
slideshow animations into that drawingml fragment didn't work -
for it being modelId diagram references instead of plain shape IDs.

So use the modelId if present, and only then fallback to shape id.

Change-Id: Iac2b8bc16255611d7ab165b72fb251cd2a65073a
2013-04-26 13:35:25 +02:00
Felix Zhang
78a2055760 bnc#793414: Bullet points are not indented correctly. 2013-04-25 19:23:34 +05:30
Muthu Subramanian
8c51484a97 n#813291: [PPTX] Axis Labels with percentage.
Added the check only in the Axis Labels import.
Maybe this check can be moved to convertNumberFormat()
2013-04-25 17:39:49 +05:30