summaryrefslogtreecommitdiff
path: root/embeddedobj
AgeCommit message (Collapse)AuthorFilesLines
2014-05-16fdo#78159: fix import of OOoXML embedded objectsMichael Stahl1-0/+18
MimeConfigurationHelper::GetDefaultFilterFromServiceName() checks that there is both an import and an export filter, and for OOoXML the export has been removed; tweak the check to require only import for OOoXML. Currently it still works invoke the OOoXML filter, but it is clearly better to store the embedded documents only in ODF, so tweak OCommonEmbeddedObject::store* methods to do that. (regression from aeeaccf59abbc485d7786486f1accc1cb4d4dbf7) Change-Id: Ib71f23fd110cbd4b570517f2dde2c53e3aa6301d (cherry picked from commit 0b3d0fb2d9256dc6bae6af69ed494487004def75) Reviewed-on: https://gerrit.libreoffice.org/9365 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
2014-05-12OLE: Turn an OSL_ENSURE() into a real condition (related: fdo#65631)Jan Holesovsky1-6/+5
This is part of some STAMPIT workaround; no idea what it is, but for sure it causes problems with PowerPoint OLE in Writer - so let's avoid updating if it is not "STAMPIT". This appears to help for the problem in fdo#65631 comment #9 on master, let's see if the same is true if it's backported to 4.2... (cherry picked from commit a94e973bf5b5d0755a53881867961691633a4cbd) Signed-off-by: Michael Stahl <mstahl@redhat.com> Change-Id: I266b419ba3461c547f7ee8e447ef64a47a8511e8
2014-04-09fdo#77140 embeddedobj: avoid unneeded conversion in ConvertBufferToFormat()Miklos Vajna2-0/+13
The primary reason is not performance: on export currently we loose some EMF+ properties. While it would be good to fix all those problems one by one, this is a small fix to avoid all kind of roundtrip problems in this situation. Change-Id: If5e1c1eabd8290f36b538e374c9707ae17097786 (cherry picked from commit 2a7fdf2a7bb7345c49c988dfd1fcdb41cebb8a1e) Reviewed-on: https://gerrit.libreoffice.org/8903 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann1-2/+2
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>
2013-11-20Windows: Require at least Windows XP SP2Thomas Arnhold2-3/+4
* 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-20convert equalsAsciiL calls to startsWith callsNoel Grandin2-7/+7
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-19remove unnecessary use of OUString constructor when assigningNoel Grandin5-51/+44
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin3-6/+6
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-11remove unnecessary use of OUString constructor in EMBEDDEDOBJ moduleNoel Grandin7-40/+40
Change-Id: I60bbdd2a2592a1e5333abe50711aa227786ce935
2013-10-23clean up some include guardsThomas Arnhold4-8/+8
Conflicts: sw/source/ui/inc/content.hxx Change-Id: I58d81881271fc6e3320bf3b5f1321594b28614a6 Reviewed-on: https://gerrit.libreoffice.org/6388 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-22fdo#68849 add some header guardsThomas Arnhold8-9/+29
Change-Id: I1cd598fba94e337c2ccad68a4a888743aeb292f0
2013-10-07fdo#54938: Adapt supportsService implementations to cppu::supportsServiceMarcos Paulo de Souza7-57/+14
Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316 Reviewed-on: https://gerrit.libreoffice.org/6035 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-02-Werror,-Wunused-variableStephan Bergmann1-1/+0
Change-Id: I9d09f8b632f568637f0a2ccb1ff62ce5d3d5afed
2013-09-29don't use SAL_WARN to log callsMarkus Mohrhard1-6/+0
Change-Id: Ia9ac8ff7d187cab9d158ffe97fb2d5faca269638
2013-09-24embeddedobj: if the service is missing, log its nameMiklos Vajna1-0/+1
Related to https://gerrit.libreoffice.org/6019, so we can find out the name of the missing component. Change-Id: I1a006403def0b29f7391449a9b6124df40446851
2013-08-29do not build emboleobj library on --disable-atlMichael Stahl1-1/+1
Change-Id: I4973cbdd8afead3f189874ef754d2b2eee4bfb9c
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák3-6/+6
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()Stephan Bergmann1-4/+4
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
2013-07-19remove Application::GetWorkAreaPosSizePixelNoel Grandin1-1/+1
This internal API has always been problematic because we cannot support it under the Linux toolkits, where it has in fact always just returned the size of the screen. Change-Id: I406bcbca8a4161b4261ef46940823bb07c6ad18b Reviewed-on: https://gerrit.libreoffice.org/4976 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-06-29remove OUString wrap for string literalsThomas Arnhold7-25/+25
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-31fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFORadu Ioan9-116/+101
- replaced RTL_CONTEXT_ with SAL_INFO - replace OSL_* with SAL_* Change-Id: Id4e90b83a7275bfd30914f7514a609cebbfbf4ac Reviewed-on: https://gerrit.libreoffice.org/4044 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-05-15Don't export a variable called PATH_SEPARATORTor Lillqvist1-4/+4
It used to be mis-spelled PATH_SEPERATOR. Now, after correcting the spelling, it breaks the build of 3rd-party libraries using autoconfigury on Windows. The value of PATH_SEPARATOR is ";" on Windows, and the configure scripts of those libs run in Cygwin and assume that a PATH_SEPARATOR environment variable should be correct for Cygwin. Which ";" isn't. Rename the variable to LIBO_PATH_SEPARATOR. Change-Id: Iff0eb93bf11d9f844a28be7ea4456e4c0ae10844
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist1-4/+4
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák6-32/+32
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06Java cleanup, convert more Vector to ArrayListNoel Grandin1-3/+3
Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
2013-05-06Java cleanup, Convert Vector to ArrayListNoel Grandin1-1/+0
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
2013-05-06No need for conditionality has been turned on since 2004Tor Lillqvist1-11/+1
Change-Id: I0e1708f1102dab8e0424d12b50da25f726e8a5f6
2013-05-02Resolves: #i113605# missing :ReleaseStgMedium() call on STGMEDIUM objectJian Fang Zhang1-0/+4
which causes obvious memory leaks Found by: zhangjf Patch by: zhangjf (cherry picked from commit e0d9b7a23ca3e7ba181134cd89f3f18233031ef1) Change-Id: I5f99f8cf02e155e5284df3df89feb49d9a30c2c1
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks3-63/+12
2013-04-24gbuild: drop empty use_packages callsDavid Tardon1-3/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24gbuild: drop uses of removed packagesDavid Tardon1-1/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-15fdo#60724 correct spellingThomas Arnhold1-1/+1
Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák41-769/+769
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05Replace `compareTo(...) == 0` with ==Ashish Banerjee7-8/+8
Proposed patch for the following issue: https://bugs.freedesktop.org/show_bug.cgi?id=62096 Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f Reviewed-on: https://gerrit.libreoffice.org/3198 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold3-7/+7
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold23-315/+306
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-2/+0
2013-03-04doubled includesThomas Arnhold2-2/+0
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold3-7/+7
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-03-02Typo fix: informations -> information and a few other adjacent typos.Gregg King1-3/+3
FDO:60724 Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b Reviewed-on: https://gerrit.libreoffice.org/2479 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28Fix typo "persistant" -> "persistant"Julien Nabet3-7/+7
Change-Id: I639afec2508d189c10a180fd8f824e634afbd14a Reviewed-on: https://gerrit.libreoffice.org/2347 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-25remove some trivial duplicatesThomas Arnhold1-1/+0
Change-Id: Ie736cb6d5ff7f4d1998338f4a3a3a3b0a67c79ad
2013-02-22fdo#39674: Rename menues to menuThomas Arnhold2-6/+6
Change-Id: Idc22167d1a0dc518b3f9e96884213140d07b565b Reviewed-on: https://gerrit.libreoffice.org/2316 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-22s/the the/the/Tor Lillqvist1-1/+1
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-11fdo#46808, use service constructorNoel Grandin1-3/+1
Change-Id: I8c533eb6efdcabc3475527fb16f9674ca2a5eb8b
2013-02-10fdo#60491: embeddedobj: catch exception in fallback pathMichael Stahl1-1/+8
This allows the OLE object to at least be passed to the OS for opening... Change-Id: I97f93eb3a015d7771f3fc909517ffb96d61fde52
2013-02-10embeddedobj: log some exceptionsMichael Stahl2-2/+6
Change-Id: I2e565bc6e57f7bf59fdd6eb5fc577e0b3d58b9f6
2013-02-08fdo#60234 fdo#60492: fix emboleobj library on WNT:Michael Stahl1-1/+1
Use prefix consistently in all component files for the library. Change-Id: I58dce631f474e022be320c748f62238953a28e17
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl2-0/+4
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9