summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2013-11-05FCFGMerge: Close files - silence warningThomas Arnhold
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 Monastirsky
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 Stahl
Change-Id: I8f830790935a05a0413187b6e21002e0f2563adf
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin
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 Tardon
Change-Id: I19cc5b13adf1c0d8cf26abbc9f4254ae89a970fc
2013-11-01fdo#71137 fix linecap and linejoint in SVG exportLászló Németh
Change-Id: I52ee0ec79ebcd5a32f0c328440ce46e0452b121e
2013-11-01fdo#71136 fix SVG export (double stroke-width)László Németh
Change-Id: Iae5521e34951559351103a9defce30dc50d823c8
2013-10-31Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand
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 Štrba
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 Grandin
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 Tardon
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 Stahl
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
2013-10-28fdo#68903 Import .tsv and .xls plain text files in Calc by defaultMaxim Monastirsky
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 Vajna
Change-Id: I145c08d17ccb36bfbf734306cd9d27e8423debdd
2013-10-24added/checked/aligned MS-LangIDs and mappings from new MS-LCID.pdfEike Rathke
... 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 Arnhold
Change-Id: Ifdb49a0fd5f658056b14b7c2f4e323dd38b412e6
2013-10-23clean up messed up filterdetect.hxxThomas Arnhold
Change-Id: Ib8c7c8a560e2f567df9e4a0ba7dc6b05d9e9e66b
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22Resolves: fdo#38838 remove UniStringCaolán McNamara
hammer silver nails into coffin and bury in concrete Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza
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-Poirier
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 McNamara
Change-Id: I83698b10c0c4fef1929d62be809ac7d77e9a3502
2013-10-19CID#1103675 use normal assert, as it's toast anywayCaolán McNamara
Change-Id: I065ce5f80f0c54443aca9378a653a9f25175feee
2013-10-19CID#1103676 use normal assert, as it's toast anywayCaolán McNamara
Change-Id: I47340d71b5f3af9c06556965f240fb084440ea27
2013-10-19CID#703918 ensure buffer is null terminatedCaolán McNamara
Change-Id: If7937abf1ea51578187269a48af58bdede569ed6
2013-10-19SetS only used once with constant valuesCaolán McNamara
Change-Id: I2223c22da5bee6d9f9741c96eafe4d65e15dcb55
2013-10-16cleanupThomas Arnhold
Change-Id: I7bfd221f89718ba8634417c93a26b3a199178694
2013-10-11-Werror,-Wunused-variableStephan Bergmann
Change-Id: Ia3e6da86b47099106c4be793a1477979d327a2b9
2013-10-09CID#736174 yikes, sizeof(char[]) includes 0, so 4 not 3Caolán McNamara
Change-Id: Ia54ecab9e08485ebffe98dc064f328360c17a120
2013-10-07EPS import: convert to BMP instead of PNGBjörgvin Ragnarsson
This speeds up rendering of EPS figures by approximately 10% Change-Id: Ie7d39bab4a7ea5f9350f989c25364f70bd8b8453 Reviewed-on: https://gerrit.libreoffice.org/6124 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-05DXF import filter: fix OUString handlingMichael Stahl
The DXF import filter stores all strings read from the file in char[DXF_MAX_STRING_LEN+1] arrays, and then calls OUString constructor with that which then asserts because the string is actually shorter than the size of the array... avoid that by converting from char* to OString. Change-Id: I93c52788f88fe5d21968d450d029ed5db101d88b
2013-10-04'ist' -> 'is' here and there.Jan Holesovsky
Change-Id: I0a463c38214b95582db2c7b3979367255426c14e
2013-10-04HighLight -> Highlight.Jan Holesovsky
Change-Id: I2db5102fbc441c0b79d8c28023f3e3bb5613b3cf
2013-10-02gbuild: kill gb_XcuModuleTarget_get_outdir_targetMatúš Kukan
Change-Id: I1d54d98b8aa50f778de87e6ebb17ec2eed0d65dc
2013-10-02-Werror,-Wunused-variableStephan Bergmann
Change-Id: Ib6ccb342f28d831e49be91ec6b6167f6ea5336b8
2013-10-02WaE: unused variableTor Lillqvist
Change-Id: Ibaa2cecb60942a83b0ddaa699327607af7a22d85
2013-10-02Improves fdo#41407: Make gs a higher priority than convert for EPS rendering.Björgvin Ragnarsson
This speeds up EPS loading on systems where convert is configured to execute gs for conversion instead of using libgs. This seems to be how convert is compiled on most linux distos. Change-Id: Ibfc95bff11076d286b6ba210d2db2129ac0bb45b Reviewed-on: https://gerrit.libreoffice.org/6009 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: Ibec53c0e3565007be5d3379dad5c7c7678afc721
2013-10-01filter config: stop replacing %productname% / %formatversion%Michael Stahl
... at runtime. Hard-code these to OpenOffice.org 1.0, since nobody will ever build a "StarOffice" or "StarSuite" any more. Change-Id: I1785dea8dfd15a9384f9fecd92935a6043d995bc
2013-10-01filter config: another case of accidental OpenOffice.org XML rebrandingMichael Stahl
... but apparently only used as a fall-back. Change-Id: Iebaf3d01a2eeb8aceef0168b2e1817cdd4cde5ab
2013-10-01convert remnants of String to OUString in filter moduleNoel Grandin
Change-Id: I83cea804b73d9219019354223bd2c966f52c5688
2013-10-01convert leftovers in filter module from String to OUStringNoel Grandin
Change-Id: If8954c39fec724066d46fe5d8c7e486d9bf6e955
2013-09-27cppcheck: avoid possible division by 0Julien Nabet
Change-Id: I8ff8e72d0d25168da374d752a18210cf764ed311
2013-09-26typo fixes in commentsAndras Timar
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-26Everytimes -> Every timeJesús Corrius
Change-Id: Ib84cee7dbb493387760ce68c25ec442bf0a4a121
2013-09-25Resolves: fdo#66400 import combined characters from docxCaolán McNamara
move .doc combined character parser stuff from sw to filter for reuse in .docx and fix bad length problem when nSavPtr == -1 after String->OUString conversion thanks for the pasta CloudOn Change-Id: I368ca30c14fd089271902b9b874de1099eb40038
2013-09-25Related: fdo#38838 remove UniString::EqualsIgnoreCaseAsciiCaolán McNamara
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-23Try to fix cross-compilationTor Lillqvist
Add more FOO_FOR_BUILD variables and some gb_Foo_for_build functions. Get rid of gb_INSTROOT and gb_DEVINSTALLROOT, just use INSTROOT. Change-Id: Iee531b02d14fae41edb68ad589a5dec829a60255
2013-09-19Sprinkle more boost_headers loveTor Lillqvist
Fix compilation errors when not using system boost. Might be more. It's sad that one has to micro-manage boost use like this. Change-Id: I3541789530fbdb0fb03e2b355144e63f8b031097
2013-09-17this SUPD is wrong since the .res stopped getting versionedCaolán McNamara
Change-Id: I93e970902f4862fa895aa768cdcb72399a1997d8