summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2016-09-26Resolves: tdf#99273 can't save specific docxCaolán McNamara
crashtesting: assert on export of tdf99571-1.docx to docx (cherry picked from commit fb045517532aababc06fb4b1112def53b03d9144) Change-Id: I2c8d82ac21451a2d2cc748dc28ac210c8e5ddf5f Reviewed-on: https://gerrit.libreoffice.org/29016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit fa5830d02cec81921235357f4ed0372d104cf89e)
2016-07-20convert more DBG_ASSERT(false to SAL_WARNNoel Grandin
Reviewed-on: https://gerrit.libreoffice.org/26195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 272a8afa60fe9a6b497c69a58b0054ad5b880690) Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55
2016-07-20convert DBG_ASSERT(false, to SAL_WARN(Noel Grandin
Change-Id: I400d728c5d99228c5ca52e369037395b4da2af5c Reviewed-on: https://gerrit.libreoffice.org/26187 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit ab10f9fc11948ca0f463aa8c0c784a574c89f8f7)
2016-07-20Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. (cherry picked from commit 14cd5182c5f64c43581c82db8c958369152226ac) Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-07-20use Any constructor instead of temporariesNoel Grandin
(cherry picked from commit 58a32075ca4f457f570af75aef368dd6c389aca7) Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
2016-07-20vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock
(cherry picked from commit 88730cdae3520b18fc073dc59bd0ed660e15d6b4) Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-07-20Fix typosAndrea Gelmini
Change-Id: Ice72f8d9971e15dd6ef365e64cd567b8581a92d3 Reviewed-on: https://gerrit.libreoffice.org/21797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 534b2a4b58ba765dbc256d6297e33453524915e2)
2016-07-20unnecessary use of OUString constructorNoel Grandin
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
2016-07-20vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock
Reviewed-on: https://gerrit.libreoffice.org/21529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit 28c96fc2553a5c3dee108f1e2060d7bc081a7e7e) Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f
2016-07-20loplugin: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 (cherry picked from commit 00c62e306f4fd866f04a496a28c15d317ba02222)
2016-07-20Fix typosAndrea Gelmini
Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 64d624b65124ac02d8ee59b135593fd9d8eb9067) Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
2016-07-12loplugin:unusedfieldsNoel Grandin
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864 (cherry picked from commit ec3f72415850bd865eb030cf2b7edb55b99d4756)
2016-07-12loplugin:unusedfields variousNoel Grandin
(cherry picked from commit 1f86864e97bea96fdc608f8c8b93024ad4684d51) Change-Id: I59d9f7f73677358b4ae57efda965d43718bdf0d5
2016-07-12Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> (cherry picked from commit a238b1f8d304bf1e2ffb357937f3ec888ee8ac89) Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
2016-07-12update unusedmethods plugin to deal with constructorsNoel Grandin
and fix the operator< implementations in some of the other plugins too. Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae) Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
2016-07-12update loplugin stylepolice to check local pointers varsNoel Grandin
are actually pointer vars. Also convert from regex to normal code, so we can enable this plugin all the time. Reviewed-on: https://gerrit.libreoffice.org/24391 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit e8fd5a07eca70912ddee45aaa34d434809b59fb7) Change-Id: Ie36a25ecba61c18f99c77c77646d6459a443cbd1
2016-07-07comphelper: 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 (cherry picked from commit dd615af367a11749e6490a40b4d9bcfaeebe7046)
2016-07-01bccu#1916 - svg-export - Removal of the SVG 1.1 path API in ChromeMarco Cecchetti
On Chrome browser most of shape effects and slide transitions did not work anymore: that was due to the fact that several animations exploit the DOM api for handling path segments of the svg:path element. Starting from version 48 such an api has been removed from Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=539385 ; Moreover Chrome does not yet provide an implementation for the new svgpath api introduced in SVG 2.0 draft: so there is no native support for handling path data directly. The present patch adapts the JavaScript implementation of the old SVG 1.1 path api proposed here: https://github.com/progers/pathseg . Change-Id: Ibcf3587b65f32cf4cd77d0f6e9c4a0837210fc76
2016-07-01bccu#1910 - better handling of not supported animation nodes.Marco Cecchetti
Earlier, when a not supported animation node was hit all effects in the same slide was ignored since the whole animation tree was invalidated. This patch tries to minimize the impact of this issue by removing only all children nodes of the direct parent container of the not supported animation node. Change-Id: I6ff55292f56939a9280c004b026260fe73626aeb
2016-07-01bccu#1900 - added support for discrete activitiesMarco Cecchetti
Change-Id: I327c4f388fbe939e6c5c8b5e641179cefdc45519
2016-07-01bccu#1900 - additive and calc mode were not parsed correctlyMarco Cecchetti
Change-Id: I0721f0b7ce78e00c47837fb29998aec30244a257
2016-07-01bccu#1870 - added support for rotate attributeMarco Cecchetti
Change-Id: Ic187b38afda7c737313c3c6c219ce439ba48e02d
2016-07-01avoid 'Compiler Error C2026 string too big, trailing characters truncated'Andras Timar
Change-Id: I7580b1b9bb5323c13c19cef86d50fde19a2f3a97
2016-07-01bccu#1307 - svg filter - added support for clip region meta actionMarco Cecchetti
Change-Id: Ie5177c7a0c3679db6f72c9a656c9474eac2cf047 Reviewed-on: https://gerrit.libreoffice.org/26506 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-07-01svg filter - rewritten context handlingMarco Cecchetti
Reviewed-on: https://gerrit.libreoffice.org/26505 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com> Conflicts: filter/source/svg/svgwriter.cxx filter/source/svg/svgwriter.hxx Change-Id: Ibb66ab6d339d48ad9eef90c2f6795793f0392d03
2016-06-30svgfilter - polish code formattingMarco Cecchetti
Reviewed-on: https://gerrit.libreoffice.org/26504 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com> Conflicts: filter/source/svg/svgwriter.hxx Change-Id: I15179fd097661df7144ee9976f2da68ef60f1e97
2016-06-30lool - bccu#1307 - stop colors for background gradient was wrongMarco Cecchetti
Change-Id: Ia92eecb9ad77b627bb6a5b01ef8a52d0c457a93a Reviewed-on: https://gerrit.libreoffice.org/26503 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-06-30lool - bccu#1307 - images must be scaled in a non-uniform wayMarco Cecchetti
Change-Id: Iaff479eb32998d679b1b0ef4515730a8d966f750 Reviewed-on: https://gerrit.libreoffice.org/26502 Reviewed-by: Marco Cecchetti <mrcekets@gmail.com> Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2016-06-12bccu#1800 fix bogus loops in slide animations and transitionsAndras Timar
Change-Id: Ia0ba0921c3ebfbfbd66fddf81e43fec480f6d5bb
2016-06-12filter: svg: avoid undefined variablesHenry Castro
Change-Id: Ibc3b678decfb36f5ac5779edb43aef1657507df2 Reviewed-on: https://gerrit.libreoffice.org/24627 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2016-06-12svg export - skip/rewind slide transitionMarco Cecchetti
The following actions messed up the animation engine if they were performed while a slide transition was running: - rewind/skip currect playing effect (Left/Right key) - rewind last/skip next effect (Up/Down key) - rewind/skip all effect (PgUp/PgDown key) - jump to first/last slide (Home/End key) Now: - Left/Up/PgUp key: rewind slide transition - Right/Down key: skip slide transition - PgDown key: skip slide transition and all new slide effects - Home key: skip slide transition and jump to first slide - End key: skip slide transition and jump to last slide Moreover the parsing of transition node properties missed to report some type of not supported transitions which caused the animation engine to hung. Change-Id: I7018b8e8fb3041a95cc80e250431b6544c875e98 Reviewed-on: https://gerrit.libreoffice.org/21855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2016-06-12svg 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-06-12svg 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-06-12svg 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-06-12svg 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>
2016-06-12svg 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>
2016-06-12svg 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-06-12loplugin:unusedmethods unused return value in filterNoel Grandin
Change-Id: I42b24bed84ab9b745041166610732d9a074b5f72
2016-06-12svg 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>
2016-06-12svg 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>
2016-06-12svg export: transition on first slide are not run - fixedMarco Cecchetti
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>
2016-06-12svg export: no more an experimental featureMarco Cecchetti
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>
2016-06-12svg-export: added a new bullet typeMarco Cecchetti
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>
2016-06-12uno::Sequence->std::vectorNoel Grandin
Change-Id: Icbbf540e00be3baf222309a00b153cb34879dfd7
2016-06-11filter: PPT import: PptPlaceholder is 1 byte largeMichael Stahl
The array of 8 bytes corresponds to 8 enum values and is read directly in ReadPptSlideLayoutAto(); this was wrongly converted to enum. (regression from e5a03da8eb02c333502d6b427625e7bf554ff203) Change-Id: I5757e06459467b3c84c4a404493fa3be23e4e9a0 (cherry picked from commit 6325cdb735effc5c9ff85819b20aec4271158519) Reviewed-on: https://gerrit.libreoffice.org/26011 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 523505e556aed1934ad5c5609d9a6377e72becce)
2016-05-20 tdf#64748: added placeholder option to pdf export dialog in WriterOliver Specht
This patch introduces a setting 'Export placeholders' to File/Export as PDF. It works like the related printer setting. Change-Id: I3a11a4601b1244b57e55c9b73b58116d355e105c Reviewed-on: https://gerrit.libreoffice.org/24976 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de> Reviewed-on: https://gerrit.libreoffice.org/25053 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-06tdf#93124: Fix incorrect text fit in imported PPT - take twoMike Kaganski
This patch just fixes incorrect decision when the block alignment must be applied. Also, unit test is included. Reviewed-on: https://gerrit.libreoffice.org/24648 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 940b21a87cffffca0985c33e9ebb78ddf3aa0c3b) Change-Id: I458184778c5e9e115d1a4eac749ecb6991b227a8 Reviewed-on: https://gerrit.libreoffice.org/24678 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-05-03tdf#99353 take the footgun away from FilterCacheDavid Tardon
FilterCache::impl_saveItem changes the properties of a config. item one-by-one. But it also listens to the configuration changes and reloads the whole item from the configuration on change... Change-Id: I9e4ed1c6b013925d07f0942717fe3421f924279d (cherry picked from commit 390ddd3bde617388e481b6747aa7bbea17d5ddf1) Reviewed-on: https://gerrit.libreoffice.org/24610 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-03-15vcl: move graph.[hx]xx to graphic.[hc]xxChris Sherlock
It's IMO a bit confusing to see a "graph" header that doesn't strictly deal with graphs, but graphics. Backporting to 5.1 series to allow for easier backporting of other potential hotfixes. Change-Id: Ic37c6cd78e23d05939486f98667144c4453bb0a3 Reviewed-on: https://gerrit.libreoffice.org/22949 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-02-17tdf#85761 vcl: JPEG export does not save PPI values correctlyChris Sherlock
JPEG values are currently hardcoded to 96PPI when we export JPEGs. The Graphic class doesn't have an easy way to get the PPI, but this can actually be calculated from the pref size and pref map mode (no idea why it is called "Pref"). Interestingly, you need to get a multiplier to work this out, relative to units of 100th mm. The EPS filter code had a function that does exactly this, but it's entirely based on MapMode units so it was really implemented in the wrong class IMO. I have thus moved it out of PSWriter and into MapMode. This also fixes tdf#65695, which was partially fixed, but had the JPEG PPI hardcoded to 96dpi. Also fixes tdf#97481. Change-Id: Iedb674141dd4e22fcbfb7be357dc777f732aa3aa Reviewed-on: https://gerrit.libreoffice.org/22339 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/22380