summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2016-01-27Replace salhelper::SingletonRef with rtl::StaticStephan Bergmann
Change-Id: Idc897e2b641a7b2a62e48a43f57dd46cd48df7ad
2016-01-21vcl: rename Font::GetFamily to Font::GetFamilyTypeChris Sherlock
Change-Id: Ie427a43bd126dcdd89c6f66582736e67130f2254 Reviewed-on: https://gerrit.libreoffice.org/21633 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-20loplugin:unusedmethodsNoel Grandin
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e Reviewed-on: https://gerrit.libreoffice.org/21603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-19-Werror=misleading-indentation (GCC 6)Stephan Bergmann
Change-Id: Idcb4386f37d4f945301934e4f2e65d81cf1db2bd
2016-01-18loplugin: unused return valuesNoel Grandin
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-18Set file association for MS Write files on linux and MacSean Young
Other mime types used for MS Write are application/x-wri, application/mswrite and application/wri. I think these were pretty rare though. Change-Id: I2bf48ab7a2fb1d979db38774ae0547c5ab6040d4 Reviewed-on: https://gerrit.libreoffice.org/21552 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-18vcl: change Font::SetName() to Font::SetFamilyName()Chris Sherlock
Change-Id: I9b7bd1ec25955981ebcb9085579cbb9fbaa802d5 Reviewed-on: https://gerrit.libreoffice.org/21560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-17vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock
Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f Reviewed-on: https://gerrit.libreoffice.org/21529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16revert vcl patch series that brok Mac and WindowsNorbert Thiebaud
revert: 9bc2f3de8672e812f3a67541c6d7069b434a7e42 vcl: add comment about ImplFontMetric::{Get|Set}LineHeight() 26371f105bc44e04469ec03fc5bb12505e651c6b vcl: FontAttributes::GetSlantType() -> FontAttributes::GetItalic() 2dd0b4317372b8022efe3911b38b4fa02956d8b9 vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual 5ab13bf3ead3539e4ad847656da81e7eb6029652 vcl: tabify font.hxx f99550dae55e40e49bf9c9875053fe2abb4c71ca vcl: change Font::SetName() to Font::SetFamilyName() 2b297116cb6bb1061c43e5714e2609c8ee9f57d2 vcl: rename Font::GetName to Font::GetFamilyName Change-Id: I23f38921187d66b970ca815eb30dda4222a2da62
2016-01-16vcl: change Font::SetName() to Font::SetFamilyName()Chris Sherlock
Change-Id: I54a4036544c680c4a49607677af776aa7a433fbc Reviewed-on: https://gerrit.libreoffice.org/21510 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock
Change-Id: I83927e0992dfe0a2a79d139818a9f45d3761aae5 Reviewed-on: https://gerrit.libreoffice.org/21509 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-15coverity#1348471 related Unitialized scalar fieldCaolán McNamara
add mnParentFontSize to same places that use mnFontSize Change-Id: I4cf1e7439361b65de0f12028b819a4d7c8124ca2
2016-01-15svg export: fall back to crossfade for not supported transitionsMarco Cecchetti
If we do not support the requested transition type we fall back to crossfade transition. If we do not provide an alternative transition and we set the state of the animation node to 'invalid' the animation engine stops itself. Change-Id: Ie476dd579248e9d776e27797dca2ea867f3e5e54 Reviewed-on: https://gerrit.libreoffice.org/21490 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2016-01-15svg export: simultaneous move and zoom issue - fixedMarco Cecchetti
Simultaneaous move and zoom of shapes did not work properly. Fixed. Change-Id: I445733c5ad3734966f6f5c08a5e5c798852cf74e Reviewed-on: https://gerrit.libreoffice.org/21448 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2016-01-15svg export: added support for anim:formula attributeMarco Cecchetti
Added support for formula attribute used from some effect such as spiral in. Better support for parsing value list. Change-Id: Ibf25482eba359acb279d9b212d7a829b3dc668b6 Reviewed-on: https://gerrit.libreoffice.org/21447 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2016-01-15svg export - group shape + indefinite duration - fixedMarco Cecchetti
Fixed two issues: - group shapes were not animated - when smil:dur=indefinite final state of shapes was not frozen Now when an audio or command node is hit a log message is printed informing that such a type of animation nodes are not implemented. Change-Id: I81853c982e6a2b68c3644b2ebc09e2d565d706af Reviewed-on: https://gerrit.libreoffice.org/21446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2016-01-15filter: coverity#1348471 uninitialized memberMichael Stahl
Change-Id: I2ea96fa368d7b5d326706c2575168e67e71903ce
2016-01-15filter: coverity#1348467 constant expression resultMichael Stahl
Change-Id: I51bd2919688e6ffc9c82aede1c67bcce0255f1cf
2016-01-13tdf#92925 Remove MET (OS/2) exportBryan Quigley
MET Files were used with OS/2 and are not used anymore. I did test import which this patch did not remove. However, with MET files you can not export them as an image using "Save as image" (this patch didn't cause or fix that). You can still use the export of the whole document to convert the MET file. Change-Id: Ie818ef963db14166be354379d4b2991a3b72b645 Reviewed-on: https://gerrit.libreoffice.org/20622 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13Fix memory leakStephan Bergmann
Change-Id: I9e271c3b7ff49d33f4f6f3f8c50b70ac5ce1541e
2016-01-12tdf#87118 LibreOffice should not claim to use version 1.01 of MathMLTakeshi Abe
Call it MathML 2.0 instead. Change-Id: Ifecd52cfcded680bbddf680f2600a42b1c7568d9 Reviewed-on: https://gerrit.libreoffice.org/21304 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-12tdf#65439: Export to PDF/A-1a gives transparency warningJulien Nabet
There was a use of transparency because Watermark was always defined Now we test if text of Watermark is empty or not Remark: it seems we don't cope not-text Watermark in pdf export (additional cleaning+renaming) Change-Id: I9d9c759a80c0a61e4f0a94c0fa295f2950caa3bc Reviewed-on: https://gerrit.libreoffice.org/20990 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Jan-Marek Glogowski <glogow@fbihome.de> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-12comphelper: initial SfxFilterFlags::SUPPORTSSIGNINGMiklos Vajna
Currently digital signatures can be made only on OWN formats. Add a new flag that can be used to mark filters (only DOCX as a start) which could also support signing and fix the first place that assumes that only OWN formats support signing. Change-Id: If9fbf956b765d75838986762e4d4063a9e8c0b5e
2016-01-12loplugin:unusedmethods unused return value in include/filterNoel Grandin
Change-Id: Ibd7d701b6991ae76d0cba0bfbb9cb79150c90c72 Reviewed-on: https://gerrit.libreoffice.org/21362 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-11loplugin:privatebase: Publicly derive from binary_/unary_functionStephan Bergmann
Somewhat arbitrarily prefer public over private derivation; ultimately, derivation from those deprecated (C++11)/removed (C++17) classes should be removed, anyway. Change-Id: I5ed24427d37586e72f8c16509cf5002a54af73f1
2016-01-11loplugin:privatebase: Make derivation from noncopyable explicitly privateStephan Bergmann
Change-Id: Ia410950353aec0106ea82d025ed3ee89c79ca127
2016-01-11loplugin:unusedmethods unused return value in filterNoel Grandin
Change-Id: I42b24bed84ab9b745041166610732d9a074b5f72
2016-01-11tdf#47262 SVG: Parse gradient styles twice if the referred...Xisco Fauli
gradient can't be found the first time Conflicts: filter/source/svg/svgreader.cxx Change-Id: Iaadaac13738dd0d45832a8f38787b22b1d15de29 Reviewed-on: https://gerrit.libreoffice.org/20833 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08tdf#96364 SVG: Parse 'color' and 'style' before the rest of attributesXisco Fauli
'fill', 'stroke' and 'stop-color' might depend on them Change-Id: I8b709dafe0ad0423a87911af7f2c83fa81e61cbd Reviewed-on: https://gerrit.libreoffice.org/20653 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-01-08tdf#96046 SVG: Change logic to parse doubles correctly and..Xisco Fauli
add support for font-size keywords. My previous commit fa17cfd7e006c73f1360a5a974f38d9875f347c5 was wrong as doubles like '-10.0' or '5e1' were ignored. Change logic to parse the whole string but the units ( 'cm', 'mm', etc, etc) Then, value.toDouble() will try to convert it to double, and if it's not possible it will return 0.0. Besides, add support for font-size keywords described here: http://www.w3.org/TR/REC-CSS2/fonts.html#font-size-props Working on a parse test for this section. Change-Id: I2b9c89225fcf63f1a0564abf7187097373cbc9a1 Reviewed-on: https://gerrit.libreoffice.org/20379 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-01-08fix indentationMarkus Mohrhard
Change-Id: Ic147145fca2ee1c3c9f9c504d858b84e72eeb6bc
2016-01-08fix indentationMarkus Mohrhard
Change-Id: Ie79848c6649cfef6d32f0b2ca1e98ca0b00f716a
2016-01-07cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Ifdcb1cc12645d6cdba81d16f94f0268696187cde Reviewed-on: https://gerrit.libreoffice.org/21201 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-01-05RC4 encrypt some WMF and TIFF test filesMichael Stahl
Reportedly some virus scanners warn about some of these files. Use a new "RC4" name prefix since the files don't come from external sources. http://permalink.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/69200 Change-Id: I6d4cff2fdd5c0134bf2c77558ea09b3196b39be9
2016-01-05tdf#92925 Remove SVM export from Impress/DrawBryan Quigley
There's no good reason to export a Draw/Impress document as an SVM. It can still be used as a fallback in exporting an image in any document (including Impress/Draw) though so leaving support to export images as SVM. Change-Id: I3eb5fbd241fe7535b316c2559bbfd09fec3680c7 Reviewed-on: https://gerrit.libreoffice.org/20475 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2015-12-25tdf#96713 OdfFlatXml: Seek to 0 before readingMaxim Monastirsky
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 McNamara
try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: Idfc44d90e4f73f23976e8648c504786955b4fce6
2015-12-23loplugin:unusedfields in filterNoel Grandin
Change-Id: Ic35cff139f5f180ff93fe7b1ecbd15de6c474821
2015-12-23loplugin:unusedfields in /includeNoel Grandin
Change-Id: Ia406e727890a365cc89831c96140cad8240f9b61
2015-12-22tdf#96181 SVG: Add support for <use> elementXisco Fauli
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 McNamara
Change-Id: I1eb85e5f5c98f0f2a41a4711d9d77174ab07587d
2015-12-21SVG: don't fill the gradient if there's no stop element presentXisco Fauli
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 Cecchetti
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 McNamara
and coverity#1343622 Logically dead code Change-Id: I30e5dd8a12941a7eb37520a385a63ac2b46731cc
2015-12-19svg export: borders of leaving slide are not covered by the entering oneMarco Cecchetti
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 Cecchetti
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 Cecchetti
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 Fauli
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 Stahl
... 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