summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold4-8/+7
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-18avoid Wundef in cases where the usage seems otherwise okLuboš Luňák1-1/+1
Change-Id: Iabccc31c59cec32235661f5225f45bb13f76a68f
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-3/+0
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck1-3/+3
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-04coverity#983056: Resource leakJulien Nabet1-0/+1
Change-Id: Ic40776f3cec5139e7f7accb4985533e78bd7c158
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-27sal: new ZipPackage_sal_odk_headers for public ODK headersMichael Stahl1-1/+1
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
2013-02-22quiet external module build log unless failureNorbert Thiebaud1-1/+1
ExternalProject usually involve a configure and a make step that produce a bunch of output usually irrelevant including a large number of warning and other mess. now that everything is pretty much in tail_build these output get interleaved with useful output from the build of the product and actually drown them in a logorrhea of messy noise. This store the output of external modules in a log file and only print them as a whole if the module failed do build. on a non-verbose build. Change-Id: I3abfcccd6d16821a9e061a71e031b427cc283647 Reviewed-on: https://gerrit.libreoffice.org/2304 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-21Fix type unkown -> unknownJulien Nabet1-1/+1
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-14Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ↵Jean-Noël Rouvignac2-10/+8
ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f Reviewed-on: https://gerrit.libreoffice.org/1954 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-30Adapt PyUNO getConstantByName to previous TypeDescriptionMgr API CHANGEStephan Bergmann1-6/+6
Change-Id: I5a91c6c6dce103a8e4daa1572a638e1968a48fd8
2013-01-26gbuild: fix silly "expandtabs" in makefile VIM modelinesMichael Stahl5-5/+5
Change-Id: I54d8923ad315e8041fd3904da3a29f1a7a8c8b16
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl1-0/+1
- 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
2013-01-23fdo#59728: Fix encoding of .py files as UTF-8 for Python 3Stephan Bergmann1-1/+4
...where it could default to something like CP 1252 instead on Windows, while keeping backwards compatibility for now with running under Python 2 (where things apparently worked well with the original code). Change-Id: I0ddd06771a36e1cd2cc2ce78abd8bd667db7778f
2013-01-01simplify processing of python.shDavid Tardon4-33/+36
Change-Id: I583407233fad1f7aaccc137642e5f134c3ba2874
2013-01-01just pass the define through -DDavid Tardon5-64/+4
I am constantly amazed at the creativity of the original makefile writers. An extra header file, processed by sed, rather then adding one item to CDEFS? Really? Change-Id: I41ae8b10fc447ea5ab91e767c8afb87e39b9b5f5
2012-12-27Check for __GNUC__ instead of GCC in sourcesTor Lillqvist1-1/+3
We still have checks for $(COM) being GCC or MSC in makefiles, of course. But there is no reason to pass -D$(COM) to compilations. Checking the built-in compiler-specific macros __GNUC__, _MSC_VER (etc) is the right thing to do. Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592
2012-12-25Get rid of (most uses of) GUITor Lillqvist4-4/+4
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-25WaE: Fix needed with MSVS 2010, tooTor Lillqvist1-1/+1
Change-Id: I1d1da64b14139c1d90ac07685f3fe88e99253815
2012-12-21VS2012 WaE: C4211: nonstandard extension used : redefined extern to staticTor Lillqvist1-0/+5
Some screwup with hypot(). As a workaround, include <math.h> early. Change-Id: Ic8c6abc45f8502097c6b6b619108d50ea3c22392
2012-12-19some not important Python3.3 port (pythonloader DEBUG mode)László Németh1-3/+3
Change-Id: I9a6ee04524c0ecd10301c17d2ca6da156d1c2160
2012-12-11i118798 - Fix Pyuno dead-lockAriel Constenla-Haile1-8/+8
Fixes fdo#57569, thanks to Miklós Prisznyák for the hint. git-svn-id: https://svn-master.apache.org/repos/asf/incubator/ooo/trunk@1232123 13f79535-47bb-0310-9956-ffa450edef68
2012-12-09Python/pep8: fix E711 (is or is not None instead of = or !=) in pyuno moduleJulien Nabet2-6/+6
Change-Id: I8ee9abc9a31a6d7791a006ed589d83d5858de267
2012-12-02pyuno: clean up that zipcore a littleMichael Stahl1-10/+4
That $(shell find...) is now entirely pointless with python3 in tail_build; depend on package instead. Change-Id: Iacc8a7d201f8ec2e41adf3e2351a755e955c0997
2012-11-30add python3 to tail_buildPeter Foley1-1/+2
Change-Id: I01c3d280b4ff05ddbce77343ced6934b26bd3ceb
2012-11-27pyuno: add python_headers external and use it for wrapperMichael Stahl1-16/+3
Change-Id: Ie151a1200037b6060eab00d6f0f0889134826e5e
2012-11-27clean up PYTHON related version etc. variables:Michael Stahl4-32/+7
- configure defines PYTHON_VERSION, PYTHON_VERSION_MAJOR, PYTHON_VERSION_MINOR - remove pyversion.Makefile Change-Id: I19ac8df18a520ad56bf63ea038dc0769b8249d0b
2012-11-27Switch from python to python3Michael Stahl3-4/+6
Mac specific parts of patch by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Change-Id: I90ef17c6f5a678230539a80ab999fa5344e4fc8f
2012-11-26API CHANGE: com.sun.star.lang.IllegalArgumentExceptionMichael Stahl1-7/+7
... derives from com.sun.star.uno.RuntimeException instead of com.sun.star.uno.Exception. Only test that breaks with this change is jurt_uno/AnyConverter_Test, which for mysterious reasons effectively tests that IllegalArgumentException is a subclass of Exception and not RuntimeException. Presumably this is just a generic exception test that happens to use IllegalArgumentException. Some further testing indicates there are no problems expected at runtime: Running "make subsequentcheck" with all Java test code compiled against a ridl.jar that does not contain the change, running against a soffice that uses ridl.jar and rdbs with the change + ridl.jar with the change on the test side yields exactly the same AnyConverter_Test failure, with no other failures. Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
2012-11-26use correct PyString_Size for python2Rene Engelhard1-2/+1
This reverts commit 8ea4657f64e7575696be4bba5b2a4309ac029ae4. Conflicts: pyuno/source/module/pyuno_util.cxx Change-Id: I252688b72610864613ceb80aac9030062e63fdac
2012-11-25New try to fix pystring sizeJulien Nabet1-1/+1
I don't know if it's ok but compilation doesn't fail Change-Id: I6960b2cd4587b3f49ccfa7fb24874c288ccfce6a
2012-11-25attempted blind fix for pystring size.Michael Meeks1-1/+2
Change-Id: I637292be9791484a58b60e8889962176a37e2c07
2012-11-25pyuno: fix handling of "str", "unicode", "bytes" types:Michael Stahl7-61/+104
Replace currrent wrappers of Python 2 only PyString_* functions with better abstractions that handle default "str" (PyStr_*) or byte strings ("str"/"bytes" depending on version, PyStrBytes_*) and adjust all invocations to work on appropriate string types. Fixes obvious "attributes typeName and/or value of uno.Enum are not strings" exceptions with Python 3. Change-Id: I255dcb1bc198fd7f6a62b83b957901521071a480
2012-11-25pyuno: adjust uno.ByteSequence to work with "bytes"Michael Stahl2-5/+11
This is necessary for Python3; "str" type is still accepted so it runs on Python 2 as well. Change-Id: I51098feca00e4cd8ce3ceebf663d4ce79252cbcd
2012-11-17pyuno: fix breakage because PATH_MAX not defined with Python3Michael Stahl1-1/+13
Change-Id: I12e55c8810193591d9cd017bf5d89078b3915ddb
2012-11-17pyuno: Runtime::pyObject2Any only allowed to throw RuntimeExceptionMichael Stahl1-18/+40
... so wrap the InvocationTargetException that happens when loading Python 2 only LightProof into Python 3 so LO does not crash. Change-Id: I4da230b46ef23c184718e858bf178f340f4b9c1f
2012-10-31add missing deps on sal headersDavid Tardon1-0/+5
Change-Id: I815ef8abaf4cd998e7b91fbadad56ddf0a7087ba
2012-10-23fdo#46808, use service constructor for beans::IntrospectionNoel Grandin1-9/+3
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-02Use prefixTor Lillqvist2-2/+2
Change-Id: Ibc446d8616bad00ce71c273e46517e80527e2f0e
2012-09-28gbuild: gb_Library_PLAINLIBS_NONE cleanup for unxgcc/solarisMichael Stahl1-2/+2
Change-Id: Ia7f64bdd0fd81c5dcc08d828db4602b65e2da949
2012-09-18add help on python debugging.Michael Meeks1-0/+7
2012-09-05Some clean up of previous commitStephan Bergmann1-1/+0
Change-Id: I05287fd79455f968c770d61bf5f320b07bba7d9e
2012-09-05fdo#46808, Adapt reflection::CoreReflection UNO service to new styleNoel Grandin1-9/+4
The XComponent part of the interface made no sense for a singleton, so it was removed. Explicitly document the 'theCoreReflection' singleton and move it into it's own file. Deprecated the now old CoreReflection service. Change-Id: Ib8befa87c7da7eb53a2f587948fd54a64c082472
2012-08-27fdo#46808, Adapt script::Converter service code to new styleNoel Grandin1-5/+3
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-07-20warning C4702: unreachable codeStephan Bergmann1-2/+0
Change-Id: Ie2cc83dde7e0522e0bf669a1dd3d7a8ca680f7e2
2012-07-13fdo#51948 do not link with dl on *BSDDavid Tardon1-3/+3
Change-Id: If623e9a0d909ce6a7e260b0d4beed3fb0c74cf8b
2012-07-11Runtime::any2PyObject: warning C4702: unreachable codeMichael Stahl1-2/+1
Change-Id: I303536b957f902d3bbda9f3a96b507851292523a
2012-07-02re-base on ALv2 code. Removing:Michael Meeks27-388/+397
a patch contributed by Pedro Giffuni to handle FreeBSD issues that are unlikely to be an issue with a two-layer LibreOffice. http://svn.apache.org/viewvc?view=revision&revision=1180509
2012-06-26re-base on ALv2 code.Michael Meeks1-0/+17
2012-06-22remove bunch of obsolete looking .flt filesMichael Stahl1-14/+0
Change-Id: Ic3d45afca14d0bebfb6168b6cf6fc6c618754183