summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2013-11-23Lenght -> LengthJulien Nabet
Change-Id: Ic338484627a1b74fba2d4d0794f8865290177464
2013-11-22fdo#68594: Revert bnc#758621 commit.Muthu Subramanian
Reverting: 55c63ccfd460895af22e91979967cec15d80b72d Seems some other fix, fixes the bug as well.
2013-11-22replace OUString::reverseCompareTo("xxx") with operator==Noel Grandin
operator== with OUString and literal internally does a reverse-compare (via OUString::equalsAsciiL) anyway, so no need to keep explicit calls to OUString::reverseCompareTo with literal argument Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiLNoel Grandin
Convert code like: aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN")) to: aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN") which compiles down to the same code. Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
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
2013-11-07filter: fix error messageMichael Stahl
Change-Id: I3590e6598371197a6c41977c46e05b9b5d30eb58
2013-11-06make WW8ReadFieldParams::GetResult safeCaolán McNamara
as shown by kde239121-4.doc Change-Id: I60356e7d76cc271869079f2fffa00e149274a8cc
2013-11-06rearrange tests to avoid access past end of stringCaolán McNamara
as demonstrated by abi6637-1.doc Change-Id: Ieed0ca7ccf2d8587179a4530a1da29d7d8228363
2013-11-06convert xub_StrLen to sal_Int32Noel Grandin
convert various module-local functions Change-Id: I89f3eb40b107e2617958e474ffe86bd73e01cf33
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