summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
2015-08-06pyuno: remove obsolete LC_NUMERIC to "C" mangling codeMichael Stahl1-44/+0
The CPython changelog says for version 2.4: - Python no longer relies on the LC_NUMERIC locale setting to be the "C" locale; as a result, it no longer tries to prevent changing the LC_NUMERIC category. (cherry picked from commit 1ee5e1a17cbd50f84990fb43fac7e8c811e604a9) Conflicts: pyuno/source/module/pyuno_runtime.cxx Change-Id: I6d63c4dedca48c99bf81135d69285d9116a19740
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-1/+1
Change-Id: I0968c4b37b97bb89ebc8b873c78a96431245f480
2015-04-08A UNO Any can't contain an AnyStephan Bergmann1-2/+2
...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann3-12/+12
Change-Id: Id848d14133fee5104e79ba0683cbaf942598faa7
2015-03-29Clean up remaining C-style casts among void pointersStephan Bergmann2-4/+4
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann5-28/+28
Change-Id: I3676d56e65dd2d5b36882073c63e571a79819fee
2015-03-26WaE: redundant const_cast on lhs of pointer comparison expressionTor Lillqvist1-1/+1
Change-Id: Idd06653813e3f4863a5186eb6dce074227c25579
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann5-10/+10
Change-Id: I71ebd11d850304772535cfb873086176d301172a
2015-03-19We require MSVC2013 (_MSC_VER == 1800) nowTor Lillqvist1-1/+1
Change-Id: Ice8504041f22e00f2e5010813d9dff1d2987c8d6
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara1-7/+2
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-02pyuno, scripting: remove executable bits from python, js, bsh filesMichael Stahl1-0/+0
Change-Id: Id108693d84fbca7764614e126ee1b3b045baec17
2015-02-07loplugin:deletedspecialStephan Bergmann1-4/+4
Change-Id: If27afeb618435bb1d0d69cad26942ce6dd2cdb92
2015-01-20Some more loplugin:cstylecast: pyunoStephan Bergmann8-36/+35
Change-Id: I80c9fdb45c9f58ac3cd1b0fab2631b903194e268
2015-01-02include algorithmCaolán McNamara1-1/+1
Change-Id: I55abf17a1da2616ca2b1303747ca8cc7e402634e
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara2-8/+8
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-12pyuno: Use appropriate OUString functions on string constantsStephan Bergmann1-3/+3
Change-Id: Ib507da6fc85d8bc81fd48108a98ef96d188643ac
2014-12-03Fold URE: WindowsStephan Bergmann1-18/+3
...assuming the delayLoadHook in cli_ure/source/native/native_bootstrap.cxx is no longer necessary and loading of cppuhelper from the program dir cannot fail regardless in whatever scenario the cli_cppuhelper library itself is loaded. Change-Id: I13f32b327bca4cce9780864f5e57cdad3860afe5
2014-12-02pyuno: move "officehelper.py" from scripting to pyunoMichael Stahl2-0/+85
... because at least in Fedora packages with system python it's a pain to use officehelper.bootstrap() because unlike pyuno it is not installed in the standard python directories but in libreoffice/program. You might think that bootstrap() is not appropriate functionality for a UNO langauge binding, but then why does ::cppu::bootstrap() exist? Change-Id: I5fd4b344a811c087d32fb6304e55105ab3cb137e Reviewed-on: https://gerrit.libreoffice.org/12968 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-26Extract python-only pythonloader.uno ini-file into its own PackageStephan Bergmann3-0/+53
Change-Id: Ifa9d12fa190f929807dc0dc7342e162aeb9a0576
2014-11-25Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann1-5/+0
This reverts commit 2386a92c1e6e8ec263edb4dc4fdcfeaa4673ce1f and its follow-ups 1acaa577b67158c060d2f57414f7aea86504a489 "sal: add special handling of argc==0 to osl_setCommandArgs()" and 01f27b5e5d428cc3c4aeabdcbbb8204494fbd435 "sal: fix osl_setCommandArgs() on WNT." The situation that osl_getCommandArgCount is called without a prior call to osl_setCommandArgs should be considered as harmless and can legitimately not only happen in the pyuno case discussed in the reverted commits, but also in case binary UNO is bootstrapped from within a Java process, as happens in test-javanative in ure/source/uretest/Makefile. Change-Id: I2829db390e37dfe5daeda33a4c0659b7d35e565a
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-0/+2
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini2-2/+2
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10fix spelling implemenation -> implementationNoel Grandin2-2/+2
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-10-30Add includeStephan Bergmann1-0/+4
Change-Id: I0598e9d0c9c33c538aa02eabc2c09d96ec3c9b4d
2014-10-29fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTNaruhiko Ogasawara1-2/+2
- Clean up OSL_ASSERT Change-Id: I1f3a5dcfe08876da9bb4a8486311eb0ca9bab215 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-28Fix python wrapper script on OS XMatthew J. Francis4-8/+11
Change-Id: Icfac94022ee026ad8e9d9d5298e5cc7fbd7121be Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-29loplugin: cstylecastNoel Grandin1-3/+2
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-09-21Don't try to write Python bytecode files in case of a read-only installsetTor Lillqvist1-0/+6
It causes annoying messages in the system log in the OS X sandboxed case. Change-Id: I8ae3eb34df2c045bdbdfc63cae9007f973c42537
2014-09-12pyuno: remove obsolete NOOPT comment about GCC 3.2Michael Stahl1-4/+0
Change-Id: Ie280325ddc45a79f3b73ae10f6e9cf952657091b
2014-09-09Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist3-3/+3
In other words, only executable files go in the MacOS folder. Dynamic libraries and bundled frameworks (i.e., LibreOfficePython), and nothing else, go in the Frameworks folder, and all other files go in the Resources folder. Especially, note that Java class files and rc (.ini) files also go in Resources. Such an app bundle structure is what Apple strongly suggests one should use, and it has been hinted that future versions of code signing and/or Gatekeeper will require such a structure. There is still some ugliness thanks to traces of the historical separation of URE from "the office". Like there are two separate "unorc" files, one for URE, one for the LibreOffice application. IMHO, this should be cleaned up, but is probably controversial. (Eek! I now see there are actually *three* unorc files in the app bundle. Not intentional. Need to fix that later.) Change-Id: Idcf235038deb5b8e1d061734993e9f31869b7606
2014-08-28fdo#46678: pyuno: fix deadlock in Runtime::any2PyObject()Michael Stahl1-6/+12
When calling XUnoTunnel::getSomething(), the function must drop the CPython GIL to avoid deadlock since there are implementations of XUnoTunnel that acquire SolarMutex. Change-Id: I51ffce9bdee9a51c932902e77856f865eae81d2a
2014-08-07coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
2014-07-21coverity#706600 Uncaught exceptionCaolán McNamara1-2/+1
Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
2014-07-10coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
2014-06-05various: remove SAL_THROW macroNoel Grandin2-2/+2
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-04Demystify magic poniesStephan Bergmann2-3/+3
Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
2014-06-03coverity#982753 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
2014-06-03coverity#982755 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I652b308d087c1ee9fff95f81297b079e3f816e07
2014-06-03coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
2014-05-26coverity#982751 Dereference null return valueCaolán McNamara1-1/+2
Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
2014-05-26coverity#982752 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I394a13939d67b6959903e277dd78ea05cdcadfa8
2014-05-26coverity#982754 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I0d0dc196f223a988fd029cc61a8b160b2150534c
2014-05-26coverity#982757 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
2014-05-26coverity#982758 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
2014-05-26coverity#982761 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
2014-05-26coverity#982759 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
2014-05-26coverity#982760 Dereference null return valueCaolán McNamara2-1/+14
Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29
2014-05-26coverity#982169 Unchecked return valueCaolán McNamara1-2/+2
Change-Id: I4aa333a907ff050fff4a4c7c41120ce00961673c
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet1-1/+1
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68