summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)AuthorFilesLines
2013-11-18enable more formats supported by libmwawDavid Tardon10-11/+133
Change-Id: I60d5ff673843236436af12f86f40916b7d266cd3
2013-11-16fdo#33243 Fix SVG export presentation placeholder texts exportedKurosawa Takeshi2-9/+23
Change-Id: I3eea9989128635616bc154466f169aed201bb5dc
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann2-2/+1
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14fix buildMarkus Mohrhard1-1/+0
Change-Id: I43391416dba532edd1830e490f7860dc16775fd4
2013-11-14make l10n buildable separatelyBjoern Michaelsen1-4/+8
- 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érez1-5/+20
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 Bergmann1-1/+1
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 Bergmann3-53/+53
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-23/+0
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 Grandin3-7/+7
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-13set mnemonic widgetCaolán McNamara1-0/+2
Change-Id: Iefdaf7d7e7b1156e9f1d20e2552ca0bb84c2a357
2013-11-13Convert ImpSWFDialog.src to uiLaurent Balland-Poirier9-312/+336
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 McNamara2-6/+4
Change-Id: Ia7b61f28555af5f3bbfa9a8e82d54b9a18de15df
2013-11-12Resolves: fdo#71309 Export SWF with Multiple files crashesLaurent Balland-Poirier1-3/+7
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 McNamara1-2/+2
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 Stahl2-2/+2
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 Vajna1-1/+1
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 Vajna1-1/+1
Change-Id: I26894edd3962c2b2856d2bfa4a4aa4e6f4e65c9e
2013-11-11remove unnecessary use of OUString constructor in FILTER moduleNoel Grandin4-32/+32
Change-Id: I75b5a0e6739991b234819bd11ce901b90f68ffba
2013-11-11bundle libebookDavid Tardon15-0/+420
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 Bergmann2-2/+2
...and clean up call sites. Change-Id: I7219a33652835e82fdc44e9e801a7e62868e4f38
2013-11-07officecfg: move the reportbuilder filter configuration to filter/Michael Stahl7-0/+216
Change-Id: Ied496ddbc4d5341a8e1e15d760df775eee19f850
2013-11-07filter: fix error messageMichael Stahl1-2/+4
Change-Id: I3590e6598371197a6c41977c46e05b9b5d30eb58
2013-11-06make WW8ReadFieldParams::GetResult safeCaolán McNamara1-1/+1
as shown by kde239121-4.doc Change-Id: I60356e7d76cc271869079f2fffa00e149274a8cc
2013-11-06rearrange tests to avoid access past end of stringCaolán McNamara1-1/+1
as demonstrated by abi6637-1.doc Change-Id: Ieed0ca7ccf2d8587179a4530a1da29d7d8228363
2013-11-06convert xub_StrLen to sal_Int32Noel Grandin1-1/+1
convert various module-local functions Change-Id: I89f3eb40b107e2617958e474ffe86bd73e01cf33
2013-11-05FCFGMerge: Close files - silence warningThomas Arnhold1-0/+2
Happens on Windows with --enable-debug and --enable-dbgutil C:/cygwin/libo/core/filter/source/config/tools/merge/pyAltFCFGMerge:574: ResourceWarning: unclosed file <_io.BufferedReader name='C:/cygwin/libo/core/filter/source/config/fragments/filters/..\\filters\\calc aFragmentFile = codecs.open(sFragPath, "r", "utf-8") C:/cygwin/libo/core/filter/source/config/tools/merge/pyAltFCFGMerge:293: ResourceWarning: unclosed file <_io.BufferedWriter name='C:/cygwin/libo/build/workdir/wntmsci14/XcuFilterFiltersTarget/fcfg_drawgraph aMerger.merge() Change-Id: I60981ad366e579748e3507c9f81c74b8b902867b
2013-11-04fdo#68099 Move pdf viewer call to GUI related codeMaxim Monastirsky1-13/+0
This change fixes two bugs: 1) In it's old location at PDFFilter::implExport, the pdf viewer is called *before* the final file is actually written. It causes a problem under Windows, because we use ShellExecute function which fails if the file doesn't exist. Calling a function blocks execution, so we have no chance to write the file before that function fails. (fdo#68099) 2) Being a part of the saving/filter code means that the pdf viewer will open even when converting to a pdf in headless mode. It's definitely not something that we want to happen. Change-Id: I1a6f70ec76100ac9e008869aa57ad738ced3ab6c Reviewed-on: https://gerrit.libreoffice.org/6565 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-04filter: define filter_XcuResTarget_get_clean_targetMichael Stahl1-0/+2
Change-Id: I8f830790935a05a0413187b6e21002e0f2563adf
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin2-2/+2
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-03add config. for formats newly supported by libmwawDavid Tardon7-0/+180
Change-Id: I19cc5b13adf1c0d8cf26abbc9f4254ae89a970fc
2013-11-01fdo#71137 fix linecap and linejoint in SVG exportLászló Németh1-0/+44
Change-Id: I52ee0ec79ebcd5a32f0c328440ce46e0452b121e
2013-11-01fdo#71136 fix SVG export (double stroke-width)László Németh1-8/+0
Change-Id: Iae5521e34951559351103a9defce30dc50d823c8
2013-10-31Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand1-3/+4
unify svg:d handling, correct svg:d import for relative sub-polygons in svg import; changed default for moveto writes for svg:d in ODF to absolute (cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841) Conflicts: basegfx/inc/basegfx/polygon/b2dpolygontools.hxx basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx basegfx/source/polygon/b2dpolypolygontools.cxx basegfx/source/polygon/b2dsvgpolypolygon.cxx basegfx/source/polygon/b3dpolypolygontools.cxx basegfx/source/tools/makefile.mk basegfx/test/boxclipper.cxx basegfx/test/clipstate.cxx basegfx/test/genericclipper.cxx canvas/source/tools/surfaceproxy.cxx sdext/source/pdfimport/tree/drawtreevisiting.cxx sdext/source/pdfimport/tree/writertreevisiting.cxx xmloff/inc/xexptran.hxx xmloff/source/draw/XMLImageMapContext.cxx xmloff/source/draw/XMLImageMapExport.cxx xmloff/source/draw/shapeexport2.cxx xmloff/source/draw/shapeexport3.cxx xmloff/source/draw/xexptran.cxx xmloff/source/draw/ximp3dobject.cxx xmloff/source/draw/ximpshap.cxx xmloff/source/style/MarkerStyle.cxx xmloff/source/text/XMLTextFrameContext.cxx xmloff/source/text/txtparae.cxx Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-10-31BIPU Freehand importerFridrich Štrba3-0/+27
Change-Id: I5b233343269b4107bbcfef5ea1c9b1fc7b735ed2 Reviewed-on: https://gerrit.libreoffice.org/6511 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin2-5/+5
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-30integrate Apple Keynote import filterDavid Tardon3-0/+60
Change-Id: Icc36b761da9262a99af730cfe71f576bcaab3ee1 Reviewed-on: https://gerrit.libreoffice.org/6488 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl3-6/+0
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
2013-10-28fdo#68903 Import .tsv and .xls plain text files in Calc by defaultMaxim Monastirsky1-0/+4
Change-Id: I14115542d7f0401f4fa8face9f255b4512fc0ac3 Reviewed-on: https://gerrit.libreoffice.org/6448 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2013-10-25move OOXML_COLOR_AUTO from writerfilter to msfilter, we need it from swMiklos Vajna1-1/+5
Change-Id: I145c08d17ccb36bfbf734306cd9d27e8423debdd
2013-10-24added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdfEike Rathke1-2/+2
... found at http://msdn.microsoft.com/library/cc233965.aspx (the 5th or 6th place I'm aware of where MS defines LCIDs, all different ...) * a bunch of new definitions up to Windows 8.1 * lots of cross-checks done with SIL, Ethnologue, ... Change-Id: Ifae8e676558c6712fe752856acca600d05d0a63f
2013-10-23fixincludeguards.sh: filterThomas Arnhold74-175/+175
Change-Id: Ifdb49a0fd5f658056b14b7c2f4e323dd38b412e6
2013-10-23clean up messed up filterdetect.hxxThomas Arnhold1-70/+30
Change-Id: Ib8c7c8a560e2f567df9e4a0ba7dc6b05d9e9e66b
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist4-4/+4
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22Resolves: fdo#38838 remove UniStringCaolán McNamara2-1/+3
hammer silver nails into coffin and bury in concrete Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza2-19/+4
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-20L10n of SWF export options dialogLaurent Balland-Poirier1-7/+7
Change-Id: I91d29a81389e36ddf34d56760cea588c0a7c12f6 Reviewed-on: https://gerrit.libreoffice.org/6324 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-10-20drop some tools/string includesCaolán McNamara2-2/+0
Change-Id: I83698b10c0c4fef1929d62be809ac7d77e9a3502
2013-10-19CID#1103675 use normal assert, as it's toast anywayCaolán McNamara1-3/+2
Change-Id: I065ce5f80f0c54443aca9378a653a9f25175feee
2013-10-19CID#1103676 use normal assert, as it's toast anywayCaolán McNamara1-2/+1
Change-Id: I47340d71b5f3af9c06556965f240fb084440ea27