summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)AuthorFilesLines
2015-12-25tdf#96713 OdfFlatXml: Seek to 0 before readingMaxim Monastirsky1-0/+4
Similar to tdf#45418. The problem is that sfx2 DocumentInserter code calls SfxMedium::IsStorage, which reads the stream but doesn't correctly seek back to 0. Actually SfxMedium_Impl has 2 members for the input stream, one of SvStream type and another one as Reference<XInputStream>. Turns out that reading with SvStream::Read changes the position in the object referenced by Reference<XInputStream>, but SvStream::Seek doesn't, so Seek(0) doesn't do the desired effect. My current solution is to ensure that we're reading from 0 inside the filter. I think it's a good thing to do anyway, and should be sufficient, given that other filters doesn't seem to be affected by this bug. Change-Id: I49b41077032d3e395c675e4f7824cc778c075473
2015-12-24crashtesting: fdo73974-1.doc assert on reexport to docCaolán McNamara1-2/+2
try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: Idfc44d90e4f73f23976e8648c504786955b4fce6
2015-12-23loplugin:unusedfields in filterNoel Grandin14-37/+18
Change-Id: Ic35cff139f5f180ff93fe7b1ecbd15de6c474821
2015-12-23loplugin:unusedfields in /includeNoel Grandin1-2/+1
Change-Id: Ia406e727890a365cc89831c96140cad8240f9b61
2015-12-22tdf#96181 SVG: Add support for <use> elementXisco Fauli1-13/+103
Change-Id: Ia95c7e35158f8a4c6a597662524c74e1909983bb Reviewed-on: https://gerrit.libreoffice.org/20483 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-12-21coverity#707837 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I1eb85e5f5c98f0f2a41a4711d9d77174ab07587d
2015-12-21SVG: don't fill the gradient if there's no stop element presentXisco Fauli1-10/+16
Change-Id: Ia12bd6bdbc248b382a7cbee8b75bdff462e715bd Reviewed-on: https://gerrit.libreoffice.org/20690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-12-19svg export: presentation engine: source code clean upMarco Cecchetti1-158/+135
Change-Id: I83f6d524feb21197ad930180f36224feae565ab0 Reviewed-on: https://gerrit.libreoffice.org/20808 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2015-12-19coverity#1343621 Constant expression resultCaolán McNamara1-1/+1
and coverity#1343622 Logically dead code Change-Id: I30e5dd8a12941a7eb37520a385a63ac2b46731cc
2015-12-19svg export: borders of leaving slide are not covered by the entering oneMarco Cecchetti2-3/+39
Change-Id: Ib467c062e68fa8fe2a104daff399407aefffbb3f Reviewed-on: https://gerrit.libreoffice.org/20807 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2015-12-19svg export: transition not displayed when switching from last to first slideMarco Cecchetti2-17/+51
Some transition, such as those involving clipping, is not displayed when switching from last to first slide. That is due to the fact that the leaving slide (the last one) is over the entering slide (the first one). The issue has been solved by hiding the last slide and placing a view to it (svg:use) behind the first slide. The text decoration unit test has been modified. Change-Id: Iac1d23a1b9834c301b8ae511ea3f81397e5a4229 Reviewed-on: https://gerrit.libreoffice.org/20705 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2015-12-19svg export: added support for random bar and dissolve transitionsMarco Cecchetti1-8/+169
Change-Id: Ib5e303599b04b031d7eefed56603bce0d1e1e570 Reviewed-on: https://gerrit.libreoffice.org/20650 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2015-12-17tdf#32248 SVG: first attempt to support tspan elementsXisco Fauli1-4/+5
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-15filter: add BaseURL parameter to SvxMSDffManager::ImportOLE()Michael Stahl2-8/+12
... 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-11No need for a separate <vcl/graph.h>Tor Lillqvist1-1/+0
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-10svg export: transition on first slide are not run - fixedMarco Cecchetti2-5/+78
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-09svg export: no more an experimental featureMarco Cecchetti3-255/+182
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-08consolidate MSO format ClassID magic numbers in msfilter/classids.hxxMichael Stahl1-24/+12
Change-Id: I673eeaa4168f769cb002995c43d986ee5f2030b2
2015-12-08merge some Palm text format filtersDavid Tardon7-128/+8
Change-Id: I796ce84325549178d3eac572c363a8cbc9ae542f
2015-12-08merge libmwaw format specs (writer)David Tardon41-1166/+10
Change-Id: Icf1e5e976e0c98b2ce8e2dd7a3b9c89a6be7d7c6
2015-12-08add generic presentation filter for libmwawDavid Tardon3-0/+58
Change-Id: I3b96671b7a0f278329a686ba9082b3e4e4989e87
2015-12-08merge libmwaw format specs (draw)David Tardon21-512/+20
Change-Id: Ia0dfe1e1ce1ab2b1ef266d1aa0950fd6670b0c50
2015-12-08fix libmwaw calc filtersDavid Tardon5-4/+39
Change-Id: I0d7c6f89f4646b59f23591eb1b3511afa31179c2
2015-12-08SVG: Revert previous commits for tdf#95332 and tdf#95733Xisco Fauli1-10/+8
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-07merge libmwaw type/filter defs (Calc)David Tardon7-115/+15
Change-Id: Ic0f01d2f71cad69bea0944c62fb0832bc6caa252
2015-12-07Revert "svg export: no more an experimental feature"Andras Timar3-181/+254
This reverts commit 59cd3f4ddb88ef1326166902ffe61d6050bfcd99.
2015-12-07Revert "svg-export: fix wrong conflict resolution"Andras Timar1-1/+1
This reverts commit 7485ea8b917c1e4da7982611c70b0f3d0a46b27a.
2015-12-07svg-export: fix wrong conflict resolutionMarco Cecchetti1-1/+1
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-07svg export: no more an experimental featureMarco Cecchetti3-254/+181
Removed experimental feature check. Single slide exporting works as for multi slides exporting. Conflicts: filter/source/svg/svgexport.cxx Change-Id: I3b4f100f5ab9c76896e7f52d65ec27c364216c21
2015-12-07Revert "svg-export: fix wrong conflict resolution"Andras Timar1-1/+1
This reverts commit ab794090190e12daa4dab209889c084cd8e8b6f9.
2015-12-07svg-export: fix wrong conflict resolutionMarco Cecchetti1-1/+1
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-07svg-export: added a new bullet typeMarco Cecchetti1-0/+2
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-05Simplify and remove this do/whileJulien Nabet1-24/+19
There wasn't even a kind of "finally" block! Change-Id: Ib6836e8e8bd7369c2049c0fd26081002dfbfecba
2015-12-04tdf#92925 Remove PBM, PGM, and PPM ExportBryan Quigley14-936/+0
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-03uno::Sequence->std::vectorNoel Grandin3-8/+8
Change-Id: Icbbf540e00be3baf222309a00b153cb34879dfd7
2015-12-03use comphelper::containerToSequenceNoel Grandin1-7/+2
Change-Id: Ibd3e5a2c465f74577f2acf93dc3558bca3a323fb
2015-12-02tdf#92925 Remove XPM exportBryan Quigley6-352/+0
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-02tdf#92925 Remove RAS exportBryan Quigley6-373/+0
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-01tdf#92925 Remove PCT export Bryan Quigley6-2360/+0
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-01tdf#63324: Fix convert for svg filterJulien Nabet1-4/+4
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-01tdf#96046 SVG: Fix problem when percentage depends ...Xisco Fauli1-0/+3
... 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-11-30Removed unused code found by cppcheckPaolo Bernardi1-4/+0
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-30loplugin:unusedfieldsNoel Grandin1-1/+0
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-29Fix the PreferredFilter entry of writer_MWStyleMaxim Monastirsky1-1/+1
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-29enable new file formats supported by libmwaw-0.3.7osnola5-0/+122
Change-Id: I03d0f112f74dce6c307258d9765281d91cdd3a03
2015-11-28svg-export: text animation didn't work - fixedMarco Cecchetti1-2/+2
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-28svg-export: slide transition did not work - fixedMarco Cecchetti1-6/+6
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-28svg-export: animation sequence was wrongMarco Cecchetti1-22/+33
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-28svg-export: now animation elements are exported with namespaceMarco Cecchetti2-33/+56
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-28svg export: fixed issue about text fields and shape bounding boxMarco Cecchetti2-22/+46
- 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>