summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2014-04-30Related: fdo#64161 pstoedit not writing file until its closedCaolán McNamara
there's more to this than that, but at least its consistent this way and not differing per person. Its a bit unfortunate that pstoedit can't render the text in this example either though. Change-Id: I6f6bb7f83ed23dfc0f6b5c5f2b00753fa7190a8d (cherry picked from commit 4d88c6dee6d57fa9c366b67624842aefa429f527) Reviewed-on: https://gerrit.libreoffice.org/9196 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
2014-04-22handle strange brightness+contrast adjustment from msoffice (fdo#38410)Luboš Luňák
LO uses basically the formula "newpixel=(oldpixel-128)*contrast+128+brightness", i.e. contrast is applied first. It looks like there's no "oficial" formula for this, so a formula that applies brightness first would be ok too. MSO for some weird reason apparently uses a formula that applies half of brightness before contrast and half afterwards (insert funny political correctness or compromise joke here). While the result is the same like with the LO formula if only either brightness or contrast is adjusted, the result is different if both are involved. Just modify the image using the MSO algorithm if this is the case. Conflicts: filter/source/msfilter/msdffimp.cxx include/vcl/bitmap.hxx include/vcl/bitmapex.hxx include/vcl/gdimtf.hxx vcl/source/gdi/bitmap3.cxx vcl/source/gdi/bitmapex.cxx vcl/source/gdi/gdimtf.cxx Change-Id: I55fe8f395832685b90f024cf2f58b0797c1ba588 Reviewed-on: https://gerrit.libreoffice.org/9099 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-22zero various membersCaolán McNamara
(cherry picked from commit 9de20d1eb046f7bb92d893408206b91a9c054e2e) Conflicts: filter/Module_filter.mk filter/source/graphicfilter/ipcx/ipcx.cxx filter/source/graphicfilter/itiff/itiff.cxx Change-Id: Iad6948fdf6eb60f86d764783b72a4fe7f5642e40 Reviewed-on: https://gerrit.libreoffice.org/9082 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-04-16fdo#74654 fix typo: printnone -> printhighAndras Timar
Change-Id: I286dedfb6dfd8d9c119bf1b6ac777a2a08f22d7e Reviewed-on: https://gerrit.libreoffice.org/9015 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-04-16handle .doc cropping also inside groups (fdo#38411)Luboš Luňák
Writer does handle cropping on its own, but only for "toplevel" images, not for those inside groups, so there still use the generic code. Change-Id: I805a4cbd2d4cea7008e0322688ccd7f35a6d4a2c (cherry picked from commit af51f3fb5aee469423b154958ccb3fe61284122f) Reviewed-on: https://gerrit.libreoffice.org/8950 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-04-16Remove OOo1.0 file formats from Save As.Bryan Quigley
List discussion: http://lists.freedesktop.org/archives/libreoffice/2013-November/057337.html Reviewed-on: https://gerrit.libreoffice.org/7489 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> (cherry picked from commit aeeaccf59abbc485d7786486f1accc1cb4d4dbf7) (cherry picked from commit c9c4148f00f60a9bb986e9431e76ab7cf8b4c547) This will be used as a "fix" for fdo#74979. Change-Id: Iea7e5d9ed8f0e48ffce4504bfaaf0d41067c7a5d Reviewed-on: https://gerrit.libreoffice.org/8937 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-04-02detect add to table beyond MAX_TABLE_SIZECaolán McNamara
Change-Id: I9b1357e583620c59898cd7a649a5b39a6d7e3739 (cherry picked from commit e326b5e06d74685b1853d61c465e5be0b5bf1595)
2014-03-07filter: make LibXSLTTransformer init backward compatibleMichael Stahl
As reported by Fernand Vanrie, initializing the XSLT service can fail because the LibXSLTTransformer::initialize was changed to require the parameters as a nested Sequence; accept previous parameter convention as a fall-back. (regression from ca0ea73a4ab104031a16b5bac7a9bb6e57c77ba0) (cherry picked from commit 6967da019b69767a15116de101d33a16b95c8a44) filter: and we learn that BootstrapFixture requires boost headers (cherry picked from commit bfdd18eb35f5c8bf7f713910ec35b853c7456969) filter: don't wait forever if the xslt test fails (cherry picked from commit 8af7a8953248dd184cd620b934ee6abc147f4076) I imagine this should have a SAL_CALL decoration (cherry picked from commit 62d6252d2cde33f6ef0e627c3192a63d43ba2a87) filter: sigh... fix the xslt test to run on WNT too (cherry picked from commit 4fcd5534348adcb61ab85b93478c272b8d9e8f8c) Change-Id: I136e6e6338f11ffecf9f856f0736d1d0e6b17c3f Reviewed-on: https://gerrit.libreoffice.org/8451 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-17fdo#74218 add SVG header when exporting via mtfTomaž Vajngerl
Change-Id: Ia200fbf73c1464160ceddc705f72d77b5f1eff51 Reviewed-on: https://gerrit.libreoffice.org/8033 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. (cherry picked from commit a3f32769fc4bb23c64168b412dd10ec769a3854d) Conflicts: sc/source/ui/unoobj/nameuno.cxx sc/source/ui/unoobj/styleuno.cxx sfx2/source/appl/sfxhelp.cxx stoc/source/security/permissions.cxx sw/source/core/unocore/unocrsrhelper.cxx (None of those bogus startsWith calls seem problematic enough to warrant backporting also to libreoffice-4-2-0.) Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21 Reviewed-on: https://gerrit.libreoffice.org/7578 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17Make all UIName localizable for filtersFridrich Štrba
Reviewed-on: https://gerrit.libreoffice.org/7492 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 450f4328551c8d9a542ca87c3cfebec90d14e6b5) Conflicts: filter/source/config/fragments/filters/mov__MOV.xcu Change-Id: Ie5c597f950c344a25c97aa990536ef66b001f41e Make UIName of filters from writerperfect module localizable Change-Id: I63974d71c8aa8b4b3ede8272fd0467fa0026b1ff Reviewed-on: https://gerrit.libreoffice.org/7491 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 4469a9c3e1df7f5e2eb79c30ba31b9be755279ab) Reviewed-on: https://gerrit.libreoffice.org/7496 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-16AbiWord Import filterFridrich Štrba
Reviewed-on: https://gerrit.libreoffice.org/7411 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit 10eaaac020e32f0bbb3869cecee94df0955b6a3b) Conflicts: external/Module_external.mk writerperfect/util/wpftwriter.component Change-Id: I90dc115044e5f81fa3a2b105d30d7d39e438b086 Fix a silly with ABW footnotes/endnotes Change-Id: I026f9c664ff7dec51e511ad439ab563d2cc0c201 (cherry picked from commit 766f718ebb4deda1a294cc1cfe137a75dfb0f6f8) Fix ABW list shapes Change-Id: Ibbbfddf10677e8c5b654cee9c5fda1603a298a67 (cherry picked from commit f8bf3e3cd4b55099a1427d611af06a45460034e7) Fix ABW embedded images Change-Id: Ifd33ea9c1f91865d5ae5175eefa9b65107404bf0 (cherry picked from commit 7c3ca696543d0e9d6771d53f386086086d8b8643) Uploading libabw-0.0.1 (support of zabw files too) Change-Id: Ie04cae9b9a362cb43b671fe8986545865822a953 (cherry picked from commit 838c8889491b7e5b08f681b7f85740784c0c1a3b) Reviewed-on: https://gerrit.libreoffice.org/7478 Reviewed-by: David Tardon <dtardon@redhat.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-12-16initial install-package-foo target for partial installsBjoern Michaelsen
make packageinfo target add uiconfig file translations add missing l10n config files add missing help files in packageinfo Reviewed-on: https://gerrit.libreoffice.org/6754 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Conflicts: helpcontent2 translations a2498a118e729276a78ef3a4eb43b5d0b302d326 9bb39bdd677af4be0da621370c51eb9e22ecc33f a7e654cdeffd832f51016ff51aa180fe3924ff4e 4ee41fdb600cb3a89da387dffe64e6a30192761c 349fb24a388775c58be7a326832b3fc0ec38180f 8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06 Change-Id: Id5f6f5c1f3e46df2d9033ccd5bbf2af6ab38a9e8 Reviewed-on: https://gerrit.libreoffice.org/6982 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-12-11Open .tab files with CalcMaxim Monastirsky
.tab extension is a known extension for tab-separated values according to Wikipedia. Also add .tsv .tab files to the list of known text files, so XML detection code won't run on it, and won't output errors to console. Change-Id: Ifb8edc40900cb4669264e1e989c01efd61ff24bf Reviewed-on: https://gerrit.libreoffice.org/7039 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2013-12-11CID#736170, CID#736171, CID#736172 Out-of-Bounds read/writeJulien Nabet
Let's be sure that nMaxcolorIndex < 256 Change-Id: I349184ad92c8e7b10a90a32e093972bfaee52467 Reviewed-on: https://gerrit.libreoffice.org/6970 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/6971 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-12-08fdo#39206 Add support for image transformation in SVG ImportSamuel Mehrbrodt
Change-Id: I268599b0c13bbacf5db526fed79453a5443145a5 Reviewed-on: https://gerrit.libreoffice.org/6968 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit fb978b8123a47123d184daf390ce17eaacbc05d9)
2013-11-26fdo#72034 OOXML 2007/2010 -> 2007/2010/2013Andras Timar
Change-Id: Id5bec8634a66361f4369fe02a3061974d00e7a1f
2013-11-25filter: un-break the SWF export dialogMichael Stahl
The mpResMgr is no longer initialized but still checked. (regression from 191dc43f97ed8bec78ee540676a91815cad71104) Change-Id: I8330a74e9209eaca1fee70e7b8ba332482fa0c1d (cherry picked from commit 6e4a4af525923eb6c2b24f6ac0c9936efe827ca3)
2013-11-25rhbz#1030009 Remove global XModel refStephan Bergmann
...that is apparently effectively unused since 2627bdaddc6f694dc7fc6ba347a305af0f88ee2c "INTEGRATION: CWS fwk02ea: #i28639# always used supplied status indicator" anyway but causes crashes during exit when it holds an SwXTextDocument ref. Change-Id: I542545c793855b41731de72650bf07d5748fcb9f (cherry picked from commit a7464edb0a4368db02b1298b5710cf98b17e282b)
2013-11-25fdo#68594: Revert bnc#758621 commit.Muthu Subramanian
Reverting: 55c63ccfd460895af22e91979967cec15d80b72d Seems some other fix, fixes the bug as well.
2013-11-20Windows: Require at least Windows XP SP2Thomas Arnhold
* Windows XP SP2 is 0x0502, see http://msdn.microsoft.com/en-us/library/aa383745.aspx * If a module changes the Windows SDK version setting, this is done module wide now. So the overall behavior is as before. This seems to be the best compromise for now. * We need at least SP2 because of the bluetooth stuff used in sd/source/ui/remotecontrol. * Now, we require at least Internet Explorer 7.0. IE6 has been outdated for a long time. * Leave StdAfx.h file definitions, as those are Microsoft project specific precompiled header files. * All local definitions of WINVER are removed, because the global WINVER setting makes them obsolete now. To the relation of the three macros: Setting _WIN32_WINNT sets WINVER and NTDDI_VERSION automatically to the same value as _WIN32_WINNT. WINVER and NTDDI_VERSION can be set idenpendently each for itself. Change-Id: Ibcc12493aae4fcaf7bcfda88be99c1b61bc326cb Reviewed-on: https://gerrit.libreoffice.org/6496 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20fix mime type for PalmDocDavid Tardon
Change-Id: I3d1b24edd0165068efb31a34817ed9631fc05ec5
2013-11-20fix FictionBook2 mime typeDavid Tardon
Change-Id: I921f33c2c712da5b542a40bfe4db1fba0f034e3f
2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin
Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-19fdo#66854 keep shadow distance of non-supported MSO shadow typeAndras Timar
this is a slight improvement of d7367b709dc4e97714fb2084b872a96389e768fb the rendering of star from #i119634# bugdoc was kept the rendering of the yellow circle shadows from fdo#66854 bugdoc was improved Change-Id: Ife53328ef665131fb954eb33c2e8269ad10da0fe
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-18enable more formats supported by libmwawDavid Tardon
Change-Id: I60d5ff673843236436af12f86f40916b7d266cd3
2013-11-16fdo#33243 Fix SVG export presentation placeholder texts exportedKurosawa Takeshi
Change-Id: I3eea9989128635616bc154466f169aed201bb5dc
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14fix buildMarkus Mohrhard
Change-Id: I43391416dba532edd1830e490f7860dc16775fd4
2013-11-14make l10n buildable separatelyBjoern Michaelsen
- this renames the 'almost' module target to non-l10n - and adds a l10n target which is intended to only build l10n parts of the product - packagers should then be able to build l10n and non-l10n parts of the product independently, thus: - enable quicker rebuilds - distribution of load - updates to l10n without a full rebuild - security fixes to binaries without rebuilding all l10n - the new targets are called build-l10n-only and build-non-l10n-only - note this is not intended to move a concept of split packages upstream -- while this exsists in distros, the number of test scenarios for this would explode upstream Change-Id: Ib8ccc9bc52718d9b0ebbfee76ad93dc29c260863 Conflicts: filter/Module_filter.mk
2013-11-14fdo#70838: Fix position issue when exporting shapes to docx.Jacobo Aragunde Pérez
Fixed an error at ImplEESdrWriter::ImplFlipBoundingBox implementation. I've also tried to simplify and explain the calculations done there. Change-Id: I41c6c6e1a045803524479c92ef807913db38167a Reviewed-on: https://gerrit.libreoffice.org/6433 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14rhbz#887420 Implement "block untrusted referer links" featureStephan Bergmann
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and SvxBrushItem::GetGraphicObject. Checking in additional places will probably be necessary to block /all/ unwanted communication. Also, some places marked /*TODO?*/ currently pass in an empty referer (which is always considered trusted) and will probably need to be adapted. Ideally, Referer URIs would never be empty (and consistently use something like <private:user> for cases where access is explicitly initiated by the user and should never be blocked), but that's a very daunting task, so start small by identifying the places that potentially need blocking and adding appropriate Referer URIs there. Also, Referer information should always be computed as freshly as possible from the context in which an access attempt is made, but, again, always carrying the information from the context all the way to the relevant functions is a very daunting task, so for now store the information upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...). The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already used to track macro execution, and there is one place in SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked by the user) is done that needs the current document's URI as Referer to check execution of macro URIs but needs an empty (or <private:user>, see above) Referer to not block non-macro URIs. Special code has been added there to handle that. Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann
writeTransformAttribute was unused since its inception in 90f5ce36231551e226d4b3e2fefaa8493af692ac "svg-import-filter.diff: SVG Import Filter implementation in filter module." Change-Id: Ifa7a13f9665d59fcc1cf8c9c3d48685bddc8bd59
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-13set mnemonic widgetCaolán McNamara
Change-Id: Iefdaf7d7e7b1156e9f1d20e2552ca0bb84c2a357
2013-11-13Convert ImpSWFDialog.src to uiLaurent Balland-Poirier
add ui file Change-Id: I42af9b8969a07b4d738c1fd30fc8917f24f784c6 Reviewed-on: https://gerrit.libreoffice.org/6592 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-13xub_StrLen->sal_Int32Caolán McNamara
Change-Id: Ia7b61f28555af5f3bbfa9a8e82d54b9a18de15df
2013-11-12Resolves: fdo#71309 Export SWF with Multiple files crashesLaurent Balland-Poirier
In case of unamed file, creation of sPresentationName crash. This patch forces creation of empty name Change-Id: I1b5319eb945f1959f2ad3c703365539508521861 Reviewed-on: https://gerrit.libreoffice.org/6598 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-11-12drop commented out DLG_OPTIONS useCaolán McNamara
Change-Id: Ife7dbfedf876a9e59eb95a83c91b603cfa96bb32 Reviewed-on: https://gerrit.libreoffice.org/6650 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-11filter config: fix MIME types for MacWrite and FreeHandMichael Stahl
The type "application/macwrite" does not appear to exist, but "application/macwriteii" is officially registered at IANA: https://www.iana.org/assignments/media-types/application/macwriteii For Freehand the "application/x-freehand" has just 6 hits on Google whereas Adobe recommends "image/x-freehand" on https://www.adobe.com/support/config.html Change-Id: I36d498888601778b1359ff58ee60b25af436a74e Reviewed-on: https://gerrit.libreoffice.org/6639 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-11-11filter: mark writer_MS_Word_97_Vorlage as preferredMiklos Vajna
The other filter associated with the .dot extension is writer_MS_Word_95_Vorlage, obviously the 97 one should be preferred. With having one filter as preferred for this extension, plain '--convert-to dot' starts to work. Change-Id: I7207d0fcb3c55b8dcc7b6179ccfa33a7c85d2ce8
2013-11-11DOC export: allow saving as a templateMiklos Vajna
Change-Id: I26894edd3962c2b2856d2bfa4a4aa4e6f4e65c9e
2013-11-11remove unnecessary use of OUString constructor in FILTER moduleNoel Grandin
Change-Id: I75b5a0e6739991b234819bd11ce901b90f68ffba
2013-11-11bundle libebookDavid Tardon
Change-Id: I05d96875b9d1deb87dadd63f446080a6fe3494a9 Reviewed-on: https://gerrit.libreoffice.org/6630 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-11-08Make INetURLObject-from-OUString ctor explicitStephan Bergmann
...and clean up call sites. Change-Id: I7219a33652835e82fdc44e9e801a7e62868e4f38
2013-11-07officecfg: move the reportbuilder filter configuration to filter/Michael Stahl
Change-Id: Ied496ddbc4d5341a8e1e15d760df775eee19f850