Commit Graph

6346 Commits

Author SHA1 Message Date
dc3eb865bd tdf#32248 SVG: first attempt to support tspan elements
it's not perfect but at least we can already display the text,
which is better than displaying nothing

Change-Id: I89627010ac8071c106b41c1de6b183a619f8158b
Reviewed-on: https://gerrit.libreoffice.org/20642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-12-17 12:23:38 +00:00
36a0abed4a filter: add BaseURL parameter to SvxMSDffManager::ImportOLE()
... mainly for the (unlikely) case of ODF embedded objects in MSO binary
files, which can be created by toggling the
Tools->Options->Load/Save->Microsoft Office export settings.

Change-Id: I270f1516b70b20ec0b60cfbd17c2c327c3d9efd0
2015-12-15 17:44:36 +01:00
a643222794 No need for a separate <vcl/graph.h>
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-11 19:11:01 +02:00
b8d86c976c svg export: transition on first slide are not run - fixed
A dummy slide has been added to be used as leaving slide for transition
on first slide.

SVGExportTextDecorations unit test - fixed wrong XPath.
The new dummy slide group element caused the xpath to the slide
group to be wrong.

Change-Id: I6c1a0a80f71a79668c309bc0bcb3d5e588ef3a39
Reviewed-on: https://gerrit.libreoffice.org/20560
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-12-10 09:57:01 +00:00
154521777f svg export: no more an experimental feature
Removed experimental feature check.
Single slide exporting works as for multi slides exporting.

SVGExportTextDecorations unit test - fixed wrong XPath
The new way single slide are exported caused the xpath to the slide
group to be wrong,

Change-Id: I4db4dc77de4f0d1208418455e1fca3b5732c8477
Reviewed-on: https://gerrit.libreoffice.org/20459
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-12-09 19:38:19 +00:00
1a18c92a52 consolidate MSO format ClassID magic numbers in msfilter/classids.hxx
Change-Id: I673eeaa4168f769cb002995c43d986ee5f2030b2
2015-12-08 22:11:43 +01:00
8050b97aca merge some Palm text format filters
Change-Id: I796ce84325549178d3eac572c363a8cbc9ae542f
2015-12-08 19:18:54 +01:00
6dd6bc42ea merge libmwaw format specs (writer)
Change-Id: Icf1e5e976e0c98b2ce8e2dd7a3b9c89a6be7d7c6
2015-12-08 19:18:54 +01:00
511d167185 add generic presentation filter for libmwaw
Change-Id: I3b96671b7a0f278329a686ba9082b3e4e4989e87
2015-12-08 19:18:53 +01:00
83d30fdbcb merge libmwaw format specs (draw)
Change-Id: Ia0dfe1e1ce1ab2b1ef266d1aa0950fd6670b0c50
2015-12-08 19:18:53 +01:00
a1c8857294 fix libmwaw calc filters
Change-Id: I0d7c6f89f4646b59f23591eb1b3511afa31179c2
2015-12-08 19:18:52 +01:00
f268e6f1fd SVG: Revert previous commits for tdf#95332 and tdf#95733
I was wrong for thinking that there was a problem when
elements inside def elements were not written.
Actually, Cristina's commit
( 5e27d23d7e665cc0aeac8fc9ea2236bf8bc088ff ) was correct
as elements inside defs don't have to be written at least
they're refered by <use> element, which isn't supported in Libo
right now. Working on implementing support for use element

Change-Id: Id0b8d8e9b27887f75cc961881daeb82089b2e62b
Reviewed-on: https://gerrit.libreoffice.org/20333
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-12-08 09:09:57 +00:00
33ff1ba858 merge libmwaw type/filter defs (Calc)
Change-Id: Ic0f01d2f71cad69bea0944c62fb0832bc6caa252
2015-12-07 23:25:28 +01:00
48f0ba92a6 Revert "svg export: no more an experimental feature"
This reverts commit 59cd3f4ddb88ef1326166902ffe61d6050bfcd99.
2015-12-07 21:24:32 +01:00
b75c47c8e5 Revert "svg-export: fix wrong conflict resolution"
This reverts commit 7485ea8b917c1e4da7982611c70b0f3d0a46b27a.
2015-12-07 21:24:12 +01:00
7485ea8b91 svg-export: fix wrong conflict resolution
Change-Id: Ibf3d054558c1fbf208b6d1a4683d52837b2bc183
Reviewed-on: https://gerrit.libreoffice.org/20447
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-12-07 21:13:21 +01:00
59cd3f4ddb svg export: no more an experimental feature
Removed experimental feature check.
Single slide exporting works as for multi slides exporting.

Conflicts:
	filter/source/svg/svgexport.cxx

Change-Id: I3b4f100f5ab9c76896e7f52d65ec27c364216c21
2015-12-07 21:13:07 +01:00
75d4b7fb53 Revert "svg-export: fix wrong conflict resolution"
This reverts commit ab794090190e12daa4dab209889c084cd8e8b6f9.
2015-12-07 21:12:39 +01:00
ab79409019 svg-export: fix wrong conflict resolution
Change-Id: Ibf3d054558c1fbf208b6d1a4683d52837b2bc183
Reviewed-on: https://gerrit.libreoffice.org/20447
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-12-07 19:42:57 +00:00
201c55cbb3 svg-export: added a new bullet type
The new bullet type is used in a pptx document.

Change-Id: I0bf970c2a25fb21b666e263b67023c299041e4cf
Reviewed-on: https://gerrit.libreoffice.org/20439
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-12-07 16:11:42 +00:00
5e07e1be57 Simplify and remove this do/while
There wasn't even a kind of "finally" block!

Change-Id: Ib6836e8e8bd7369c2049c0fd26081002dfbfecba
2015-12-05 16:26:16 +01:00
2ac0bd278d tdf#92925 Remove PBM, PGM, and PPM Export
Remove export for all the netpbm formats.
Import still works but these filetypes don't preserve good quality
anyway.

Change-Id: If4b47f749275a9d3d663f61872f448e01112f6b5
Reviewed-on: https://gerrit.libreoffice.org/20361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-04 08:15:38 +00:00
2a9adf0288 uno::Sequence->std::vector
Change-Id: Icbbf540e00be3baf222309a00b153cb34879dfd7
2015-12-03 13:57:22 +02:00
cccc9246bb use comphelper::containerToSequence
Change-Id: Ibd3e5a2c465f74577f2acf93dc3558bca3a323fb
2015-12-03 13:57:22 +02:00
630ec7110e tdf#92925 Remove XPM export
XPM was used to create icons but isn't used much anymore.
Import supoort was tested and still works.

Change-Id: I50b15bc0938c114a432e93781a92e9db38810f49
Reviewed-on: https://gerrit.libreoffice.org/20341
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-02 06:34:54 +00:00
9027629b0e tdf#92925 Remove RAS export
RAS was last used on Sun's now defunct SunOS.
Import was tested and still works.

Change-Id: I9fb9b7965279391922f19ec1f9e4a53134d41f5c
Reviewed-on: https://gerrit.libreoffice.org/20342
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-02 06:31:38 +00:00
f3f653e106 tdf#92925 Remove PCT export
Mac PICT was replaced (by PDF) after Apple moved from Mac Classic. 
I tested import and it still works

Change-Id: I931036d3946240280d406bd4abbcef6e0f86d894
Reviewed-on: https://gerrit.libreoffice.org/20029
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2015-12-01 18:12:27 +00:00
8f7fe77b9f tdf#63324: Fix convert for svg filter
If no currentFrame, it means we are in headless case

Change-Id: I840a9085417451fa1d4c0bd8311408357a8f60e9
Reviewed-on: https://gerrit.libreoffice.org/20268
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-01 09:15:05 +00:00
796a904b6f tdf#96046 SVG: Fix problem when percentage depends ...
... on its parent's viewbox

Change-Id: I1cf6327c0886c7d417923e90b7ffb60269e75147
Reviewed-on: https://gerrit.libreoffice.org/20214
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-01 09:07:13 +00:00
e7c78e6729 Removed unused code found by cppcheck
Change-Id: I495c40af12a0f16b7f1b13736405489677b582af
Reviewed-on: https://gerrit.libreoffice.org/20304
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2015-11-30 21:00:25 +00:00
ec3f724158 loplugin:unusedfields
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-30 10:34:38 +02:00
9e6539808d Fix the PreferredFilter entry of writer_MWStyle
To silence this thing:

warn:legacy.osl:899:1:filter/source/config/cache/filtercache.cxx:1257:
error: The type "writer_MWStyle" points to an invalid filter "Style (v1)".

Change-Id: If4c01a6a63391e21fd132ba07b05f94bb2679ee4
2015-11-29 19:02:17 +02:00
70a11143ad enable new file formats supported by libmwaw-0.3.7
Change-Id: I03d0f112f74dce6c307258d9765281d91cdd3a03
2015-11-29 14:08:38 +01:00
1b26e2ef0a svg-export: text animation didn't work - fixed
That was due to 2 problems:
- The namespace for an animation attribute was wrong
- For debug build the bullet placeholder is not the first child

Change-Id: If10c362f6fcffd4a05164cc5ca3ff6cacf5c28c1
Reviewed-on: https://gerrit.libreoffice.org/20238
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:27:11 +00:00
23f5c03d96 svg-export: slide transition did not work - fixed
Slide transition didn't work anymore since the attribute parsing did not
take into account the smil namespace prefix.

Change-Id: I779f6408b1eac964f934019d219dc4111debe592
Reviewed-on: https://gerrit.libreoffice.org/20237
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:22:47 +00:00
1ed6d1423c svg-export: animation sequence was wrong
Animation sequence was wrong due to the priority queue and related
compare functions implementation.

Change-Id: I359abd087e922ffa0aa4f7770fcc0c9bdb029843
Reviewed-on: https://gerrit.libreoffice.org/20236
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:17:45 +00:00
b827d20749 svg-export: now animation elements are exported with namespace
For debug build an assertion failed because of presentation, smil and
anim namespaces were not registered before exporting. The JavaScript
engine has been modified in order to handle qualified animation elements
and attributes.

Change-Id: I2415fd59c2d1afddb1c68b708feb62e446ea5252
Reviewed-on: https://gerrit.libreoffice.org/20235
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:15:25 +00:00
64e4f3c70e svg export: fixed issue about text fields and shape bounding box
- issue: text fields were not displayed; this happened for debug build
only: the problem was due to 2 facts: 1) the last fix for text
decoration which changes the order in which tspan and desc elements are
exported; 2) a workaround implemented for fixing the fact that date/time
fields were not exported correctly when positioned chars are used (see
commit c0a08eab).

    - issue: text fields were no more aligned correctly: this was due to
the fact that the rect element representing the bounding box of the
exported shape is not exported any more: I suspect that the rectangle
was present in the generated GDIMetaFile representation of the exported
shape.

Change-Id: I3cd7b0d3a7f2bde8bfd8b933297cbdd7b90e6567
Reviewed-on: https://gerrit.libreoffice.org/20234
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:12:44 +00:00
50506421f2 tdf#95356: unit test about text decorations for svg export
1) Fixed the trailing space issue in text decoration attribute value.

2) Changed the SVG export suite in order to make it more reusable for
other tests.

3) Added a unit test for testing that text decorations are exported
correctly.

Change-Id: I2bd71974242a0007726fbdd5ef5637a9ec62fd47
Reviewed-on: https://gerrit.libreoffice.org/19870
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-11-28 23:09:19 +00:00
33e49a3b66 tdf#96046 SVG: use the same PPI as in svgio
Change-Id: I211dcc6fb242cfbd05636d42a811523de8e83be6
Reviewed-on: https://gerrit.libreoffice.org/20182
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-11-27 16:13:18 +00:00
fa17cfd7e0 tdf#96046 SVG: Parse 'em' and 'ex' units correctly
the problem is that real_p parses the 'e' in 'em' and 'ex' as the exponential 
operator instead of as a str.
Change it to parse sequencies like: (11) (1.1) (1,1) (.1) (,1) (1.) (1,)
but now the parser returns a std::string so we need to convert it to double,
and make sure the commas are converted to dots too.

Change-Id: I913be7975e7db1be4773f528fd0d586db67c9461
Reviewed-on: https://gerrit.libreoffice.org/20181
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-26 12:18:05 +00:00
1f86864e97 loplugin:unusedfields various
Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2015-11-25 13:57:29 +02:00
78407eea3d filter: fix DrMemory/valgrind warnings in PPT paragraph import
various uninitialized variables in CppunitTest_sd_filters_test hang-8.ppt

Change-Id: Id0b9f146a7ab8b5bb2b36a5c2a39d65ee52e122d
2015-11-24 16:04:56 +01:00
6cd5d5f0a1 loplugin:unusedfields in include/filter/
Change-Id: Id79bc51ba273746873a1381243b2c1d32711bbb4
2015-11-24 14:20:25 +02:00
c43a3a5867 establish that Virtual Devices either match Physical Device depth or ...
are 1 or (rarely) 8 bit and lock that down.

Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23 14:25:59 +00:00
b55fb34c4b loplugin:unusedfields filter
Change-Id: I6c049c5318b71c48cd4e64d2b051035012dc11e4
2015-11-20 15:07:05 +02:00
b8793748b0 Seems more natural to pass a homogenous list by initializer_list
...than by template parameter pack (even if that requires using ServiceDecl*, as
initializer_list cannot take reference types)

Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-20 13:39:52 +01:00
ab9add5c96 loplugin:sallogareas
Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
2015-11-20 10:14:49 +01:00
b0339005b8 loplugin:sallogareas
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19 16:05:35 +01:00
49c5b9a98c use comphelper::containerToSequence
Change-Id: I223ff4af01ab2da92da0c26d32457204a5008c4a
2015-11-19 11:05:41 +02:00