summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2017-10-11tighten eps preview searchCaolán McNamara
Change-Id: I61e870dc408564b889c2ef115191f34c99286f2a Reviewed-on: https://gerrit.libreoffice.org/43323 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-11ofz#3602: some modes depend on unread data existingCaolán McNamara
Change-Id: I08309010e5138fe62c15c803da3284217b685c8b Reviewed-on: https://gerrit.libreoffice.org/43321 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-09ofz#3593: alloc memory on demand to avoid up front oomCaolán McNamara
Change-Id: I5500a98f366deaa3d4a69a419163d39e5a9e4d92 Reviewed-on: https://gerrit.libreoffice.org/43278 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-09ofz#3587 ignore broken cgm imagesCaolán McNamara
Change-Id: I649ace9e3e5cc008ba09fcc72f9c9b79322d39ab Reviewed-on: https://gerrit.libreoffice.org/43277 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-08Make Color a forward declarationChris Sherlock
Change-Id: Ib28833555661b119de8e967b05e3c8691fca826a Reviewed-on: https://gerrit.libreoffice.org/43227 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2017-10-06ofz#3566: fix oomCaolán McNamara
Change-Id: Id5bf172d49c61ad8000a5917759a54eaa0c8467e Reviewed-on: https://gerrit.libreoffice.org/43195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-05Rename and move SAL_U/W to o3tl::toU/WMike Kaganski
Previosly (since commit 9ac98e6e3488e434bf4864ecfb13a121784f640b) it was expected to gradually remove SAL_U/W usage in Windows code by replacing with reinterpret_cast or changing to some bettertypes. But as it's useful to make use of fact that LibreOffice and Windows use compatible representation of strings, this commit puts these functions to a better-suited o3tl, and recommends that the functions be consistently used throughout Windows-specific code to reflect the compatibility and keep the casts safe. Change-Id: I2f7c65606d0e2d0c01a00f08812bb4ab7659c5f6 Reviewed-on: https://gerrit.libreoffice.org/43150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-10-04add << operator for css::uno::ExceptionNoel Grandin
Change-Id: Ia23dafd07133779144965682df3b7125a3214235 Reviewed-on: https://gerrit.libreoffice.org/43046 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2017-10-03ofz#3540: oom move compression size test earlierCaolán McNamara
Change-Id: I1ca4f08ef526498cf08665f2b23d56095d5f1323 Reviewed-on: https://gerrit.libreoffice.org/43082 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-03new loplugin:blockblockNoel Grandin
Change-Id: I7b68b70fa4c7234e8882f7627026959a596968fd Reviewed-on: https://gerrit.libreoffice.org/43025 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-02ofz#3537 Direct-leakCaolán McNamara
Change-Id: Icca25565d396a36154bca0ac748554e95cd83ae9 Reviewed-on: https://gerrit.libreoffice.org/43049 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-01Replace list by vector in typedetection.cxx (filter)Julien Nabet
Change-Id: Idfb4c0e26a109157f95f3dfe2cfcdccbb2428502 Reviewed-on: https://gerrit.libreoffice.org/42995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-01ofz#3532 avoid oomCaolán McNamara
Change-Id: Ic046ebcb4c312716997eba9c18079db59c0b41f6 Reviewed-on: https://gerrit.libreoffice.org/42974 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-30Translate German comments and debug strings (leftovers)Johnny_M
Change-Id: I4ab8fbae47037f6e21c51713d1c51aaa5dc61f40 Reviewed-on: https://gerrit.libreoffice.org/42967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-09-30Use SAL_W/SAL_U instead of reinterpret_cast btwn wchar_t* and sal_Unicode*Mike Kaganski
This is type-safe, and allows to catch cases where a source type is changed for some reason, but reinterpret_cast masks that Change-Id: Ib64b6fa2e22d94a6bba890f0ccc3e20325c6f0a1 Reviewed-on: https://gerrit.libreoffice.org/42961 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-29ofz: timeoutCaolán McNamara
Change-Id: I196b9289599fc6da66bcb51f68aa4e397040aed0 Reviewed-on: https://gerrit.libreoffice.org/42909 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-27ofz#3499 oom in tiff readerCaolán McNamara
Change-Id: I2b9e98ed3a6749e2ee83a566ec857c1080e452f3 Reviewed-on: https://gerrit.libreoffice.org/42861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-26ofz#3121 check bounds betterCaolán McNamara
Change-Id: Ib1eacda7e4cdf1d0238532f4e38059a9c30556ac Reviewed-on: https://gerrit.libreoffice.org/41626 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-26ofz timeouts in pptfuzzerCaolán McNamara
Change-Id: Id682c1078359db2e2883b71977efedc79235017c Reviewed-on: https://gerrit.libreoffice.org/42805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-26Rename the basegfx::tools namespace to basegfx::utilsTor Lillqvist
Reduce potential confusion with the global tools namespace. Will hopefully make it possible to remove the annoying initial :: when referring to the global tools namespace. Unless we have even more tools subnamespaces somewhere. Thorsten said it was OK. Change-Id: Id088dfe8f4244cb79df9aa988995b31a1758c996 Reviewed-on: https://gerrit.libreoffice.org/42644 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2017-09-26ofz#3483 Floating-point-exceptionCaolán McNamara
Change-Id: I3c8dc5e4ec9ce342d2da39459c49eeb0459f76d8
2017-09-25tighten up the pict filter a tadCaolán McNamara
Change-Id: Ib09a33a97a79fdeb5b61d486af4f11b5cc4035ec
2017-09-25ofz: divide-by-zeroCaolán McNamara
Change-Id: Ie9a21a1432a98af3dca9a397057b7887ff30375f
2017-09-25Rename GetSelectEntryData -> GetSelectedEntryDataSamuel Mehrbrodt
Change-Id: Ia6402f6d2c978cbd5557052a43e9728ca9e11173 Reviewed-on: https://gerrit.libreoffice.org/42285 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-09-24ofz#3476 oom in tiff readerCaolán McNamara
Change-Id: Id103488ea0774b55521571f8b51059d06d4a0993 Reviewed-on: https://gerrit.libreoffice.org/42707 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-24move sanity checks before allocationCaolán McNamara
Change-Id: I7374b3cc4cb7f2be9cec71a385899051288234c9 Reviewed-on: https://gerrit.libreoffice.org/42706 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-23new loplugin unnecessarycatchthrowNoel Grandin
Change-Id: Iabab71ee076227bc38447ec109afaea1e53a86a6 Reviewed-on: https://gerrit.libreoffice.org/42643 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-09-22Use const reference instead of copyEike Rathke
Change-Id: Idf5239e2037dcfa808e016a726f5a980d862ede6 Reviewed-on: https://gerrit.libreoffice.org/42669 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-22GraphicExportFilter: adding FilterData defaults is unnecessaryEike Rathke
... now that we use the proper dialog that sets the proper filter properties. Change-Id: Iabc3e4b2c13b60bccc0b596a851109df32fe535c Reviewed-on: https://gerrit.libreoffice.org/42668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-09-22Apply replaceFirst() only onceEike Rathke
It's unnecessary to call if a replacement was already done and might even harm, though unlikely. (e.g. file extension "web") Change-Id: I6615c9a31178770429b523e0ee878661f1b2b6e8 Reviewed-on: https://gerrit.libreoffice.org/42667 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-22Group member variables and functions and fix naming nitpicksEike Rathke
Change-Id: Ie0b13c0ed4657200b6c92ae66ea25093e35a6c8f Reviewed-on: https://gerrit.libreoffice.org/42666 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-22No using namespace in header fileEike Rathke
And using namespace css is sufficient, it's actually good to see some namespace.. Change-Id: I8cd3418e04769bb2fd1c632d6d671b368aae06b3 Reviewed-on: https://gerrit.libreoffice.org/42665 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-22Export to PNG: selected shapes via drawing::GraphicExportFilter, tdf#108317Eike Rathke
Change-Id: Id09d9b21b2e6c018dd199a1911a9125c118abec2 Reviewed-on: https://gerrit.libreoffice.org/42658 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-09-22Move implementation to filterRenderDocument()Eike Rathke
Change-Id: I632a26c5f149fabbe3a4a1186bfbe822fff0ea24 Reviewed-on: https://gerrit.libreoffice.org/42656 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-22Remember XComponentContextEike Rathke
Change-Id: I52847249b3e17a31f6c6bf76af7bfe91a414d072 Reviewed-on: https://gerrit.libreoffice.org/42657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-09-22ofz#2902 eps timeoutCaolán McNamara
Change-Id: I8001df3ac89b81bffab871404efc90b6606e3eb3 Reviewed-on: https://gerrit.libreoffice.org/42637 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-22Ditch now unused GraphicExportDialog, GraphicExportOptionsDialogEike Rathke
That was a dead end anyway, trying to partly reimplement SvFilterOptionsDialog ExportDialog, instead of implementing the necessary bits to use that one which has everything. Change-Id: Icde7422f2c2d7e26c07dfe921a4abda41e222b09 Reviewed-on: https://gerrit.libreoffice.org/42503 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
2017-09-22loplugin:flatten in filter..i18npoolNoel Grandin
Change-Id: I9024b8b614a4de83a4d927e1918f6d4904a7fccb Reviewed-on: https://gerrit.libreoffice.org/42592 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-09-21Rename GetSelectEntryPos -> GetSelectedEntryPosSamuel Mehrbrodt
Change-Id: I0bd4cb463575af843c72d9c8aaf91742203532a4 Reviewed-on: https://gerrit.libreoffice.org/42283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-09-21Rename GetSelectEntry -> GetSelectedEntrySamuel Mehrbrodt
Change-Id: Ibb7d8c59c0e61b0e87455bd78f241d8691dd9dce Reviewed-on: https://gerrit.libreoffice.org/42282 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-09-21restore zero init of mpGroupLevel membersCaolán McNamara
since... commit 19b34f615c04555f27978e2823ba735a9c9f882e Date: Fri Jul 7 15:58:40 2017 +0200 loplugin:useuniqueptr in filter originally - mpGroupLevel = new sal_uInt32[CGM_OUTACT_MAX_GROUP_LEVEL] (); and turn this into a tidy member init list Change-Id: Ic3f012b348cfa4f4f30da678fd6bfc172d22e693 Reviewed-on: https://gerrit.libreoffice.org/42465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20improve scoping, etcCaolán McNamara
Change-Id: I3a4902b2954d500900062394d03a15aae5826e60 Reviewed-on: https://gerrit.libreoffice.org/42557 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20ofz#2298 don't reuse previous frame alpha is this frame has no alphaCaolán McNamara
Change-Id: Ie5a50e8aafdafdbeaa66f07e1f99bb7785e7ee64 Reviewed-on: https://gerrit.libreoffice.org/42550 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20xAcc always exists at this pointCaolán McNamara
Change-Id: Idea4b63bc8556ddd23c81385a050155b0e0012b3 Reviewed-on: https://gerrit.libreoffice.org/42549 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20convert to a vectorCaolán McNamara
Change-Id: Ie8223d426a5a5411afb0cb55845e3086d234511c Reviewed-on: https://gerrit.libreoffice.org/42548 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20Get the comments rightEike Rathke
Change-Id: I936b22af55b4dae3c9352f4e1238a6351a03cb3d Reviewed-on: https://gerrit.libreoffice.org/42553 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2017-09-20fix another memory leakCaolán McNamara
Change-Id: I3cb34e3efc1c071e556b7c30c1b97e4956e998af Reviewed-on: https://gerrit.libreoffice.org/42544 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20repeat for StripOffsetsCaolán McNamara
Change-Id: I87810b2ee99dc5fce12062e5ebdc97e294d38542 Reviewed-on: https://gerrit.libreoffice.org/42543 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20use aStripOffsets.size instead of nNumStripOffsetsCaolán McNamara
Change-Id: I5d4f65beb7162aabe51fb932c3aec6a4f9b55684 Reviewed-on: https://gerrit.libreoffice.org/42542 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-09-20valgrind: leak of pStripOffsetsCaolán McNamara
convert to std::vector, don't need pOldSO anymore then because the original values are retained in aStripOffsets on resize Change-Id: I9f82b0ca85eb174ba5f1f5a9e63be8eb32da5394 Reviewed-on: https://gerrit.libreoffice.org/42541 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>