Commit Graph

250 Commits

Author SHA1 Message Date
Noel Grandin
b30ee83058 fdo#46808, use service constructor for beans::Introspection
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-23 13:06:14 +02:00
Tor Lillqvist
e6150aa67e Use prefix
Change-Id: Ibc446d8616bad00ce71c273e46517e80527e2f0e
2012-10-02 11:46:15 +03:00
Stephan Bergmann
0411360989 Some clean up of previous commit
Change-Id: I05287fd79455f968c770d61bf5f320b07bba7d9e
2012-09-05 15:46:55 +02:00
Noel Grandin
b679a2a021 fdo#46808, Adapt reflection::CoreReflection UNO service to new style
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-09-05 15:46:55 +02:00
Noel Grandin
8638f1e72a fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-27 15:40:07 +02:00
Stephan Bergmann
618376bcb5 warning C4702: unreachable code
Change-Id: Ie2cc83dde7e0522e0bf669a1dd3d7a8ca680f7e2
2012-07-20 10:32:47 +02:00
Michael Stahl
ec41ccedb4 Runtime::any2PyObject: warning C4702: unreachable code
Change-Id: I303536b957f902d3bbda9f3a96b507851292523a
2012-07-11 00:15:05 +02:00
Michael Meeks
1d3e6bb6c4 re-base on ALv2 code. Removing:
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-07-02 16:52:50 +01:00
Michael Stahl
7b6b71ce14 remove bunch of obsolete looking .flt files
Change-Id: Ic3d45afca14d0bebfb6168b6cf6fc6c618754183
2012-06-22 22:39:33 +02:00
Michael Meeks
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
Stephan Bergmann
5706c479ff Remove dmake makefiles obsoleted by gbuild'ification
Change-Id: I94b074d7d2e1ea2f80c3075ae49530225947442d
2012-06-14 11:43:16 +02:00
David Ostrovsky
e16ac69372 gbuild migration: pyuno module
Change-Id: I7f923a5622214f7540a789bcdd93bf6fd1d166db
2012-06-14 11:40:23 +02:00
Takeshi Abe
54a908a003 nuke unused defines
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-04 23:26:57 +09:00
Norbert Thiebaud
df9ecb71c7 targeted string re-work
Change-Id: I44518bb1b464bb0b458c0b5f1c249ef160ea3b26
2012-06-01 09:41:50 -05:00
Norbert Thiebaud
9601b63509 targeted string re-work
Change-Id: Ibe5c739c3066f3e706a44b64d4ad775abde9662c
2012-06-01 09:41:49 -05:00
Takeshi Abe
6b915b210a nuke unused typedef
Change-Id: I12a55e08a83b88221d992790c97c830761755582
2012-05-29 23:46:57 +09:00
Takeshi Abe
5394b379eb removed unused temporary rtl::OUString
Change-Id: I9d118a5fbe2306465d8bcdb9ddd0596588137e5e
2012-05-23 01:06:54 +09:00
Szabolcs Dezsi
8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
David Bolen
742dca7366 fdo#46926: PyUNO_cmp: return acquired reference 2012-03-16 22:18:43 +01:00
Michael Stahl
06484b6946 fdo#46926: fix the fix for Python 3
Thanks to Maxime de Roucy for the hint that the "cmpfunc" type doesn't exist.
2012-03-09 15:40:00 +01:00
David Bolen
387389b644 fdo#46926: fix UNO struct comparison in Python 2
This requires setting a rich comparison flag in Python 2, while Python 3
uses rich comparison by default.
(regression from a09ce46818)
2012-03-07 11:17:13 +01:00
David Bolen
4634cbc237 fdo#46859: adapt string type checks to work with both Python 2 and 3
(regression from a09ce46818)
2012-03-07 11:17:13 +01:00
Stephan Bergmann
123c59342c Adapted GCThread to safer-to-use salhelper::Thread 2012-02-23 10:47:35 +01:00
Michael Stahl
29177b1d04 pyuno: decreaseRefCount: valgrind warning:
Apparently the thread spawned in decreaseRefCount runs and deletes
itself before the "m_hThread != 0" from osl::Thread::create is executed;
try a lame workaround for that.

==1877== Invalid read of size 8
==1877==    at 0x2A70E546: osl::Thread::create() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E351: pyuno::decreaseRefCount(_is*, _object*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A7092B4: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A709393: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x5EF2F64: cppu::OWeakObject::release() (weak.cxx:213)
==1877==    by 0x2A70DE69:
==1877==  Address 0x1ee30818 is 8 bytes inside a block of size 32 free'd
==1877==    at 0x4A0662E: free (vg_replace_malloc.c:366)
==1877==    by 0x4C44B62: rtl_freeMemory_SYSTEM(void*) (alloc_global.cxx:285)
==1877==    by 0x4C44DC7: rtl_freeMemory (alloc_global.cxx:355)
==1877==    by 0x2A70E41E: osl::Thread::operator delete(void*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E6EF: pyuno::GCThread::~GCThread() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E303: pyuno::GCThread::onTerminated() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x2A70E671: threadFunc (in pyuno/unxlngx6/lib/libpyuno.so)
==1877==    by 0x4C2E242: osl_thread_start_Impl (thread.c:292)
==1877==    by 0x3C26607D8F: start_thread (pthread_create.c:309)
==1877==    by 0x3C262EF48C: clone (clone.S:115)
2012-02-18 00:07:31 +01:00
Stephan Bergmann
a545badd65 Work around macro redefinition warning 2012-02-16 18:15:04 +01:00
Stephan Bergmann
d90fd406fd Missing return 2012-02-16 17:07:07 +01:00
Stephan Bergmann
1bb0d979b5 Adapt pyuno.so wrapper to Python 3 support 2012-02-16 16:30:58 +01:00
Alexander Bergmann
99b2adf721 Removed unused code 2012-02-10 14:20:52 +00:00
Stephan Bergmann
0b1be1ce0e Reintroduce pyuno.so wrapper around libpyuno.so
...it was cleaned away by a09ce46818 "Port PyUno
to support Python 3" but is still needed to make sure libpyuno.so is loaded
RTLD_GLOBAL (Python apparently loads its modules RTLD_LOCAL).  At least with
pre 4.5 GCC this can cause problems with C++ exception handling, see the mail
thread starting at
<http://lists.freedesktop.org/archives/libreoffice/2012-February/025166.html>
"LibO 3.5RC2: terminate called after throwing an instance of
'com::sun::registry::InvalidRegistryException'" for details.
2012-02-06 14:45:46 +01:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Olivier Hallot
85d1ce27ad Fix for fdo43460 Part XXVII getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460

Part XXVII
Modules
padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2012-01-02 19:17:17 +01:00
Takeshi Abe
7958f8244c catch exception by constant reference 2011-12-21 21:57:54 +09:00
Lionel Elie Mamane
7f4cb27518 fix loading of python-uno module by package.module name 2011-12-12 22:14:50 +01:00
Caolán McNamara
9e8ac5c91e more debug spew in non-debug product 2011-12-12 15:21:49 +00:00
Caolán McNamara
fb37327df4 Let's not have debug spew all the time 2011-12-12 14:17:08 +00:00
Michael Meeks
1a7eee2446 Improve pyuno debugging in various ways - add stack traces etc. 2011-12-05 20:53:24 +00:00
Michael Meeks
41b8bad143 wizards: completely work python wizard packaging and registration
Also improve exception handling and error printing in pythonloader
Allow registration of explicit .py components - the only method that works
2011-12-05 20:53:24 +00:00
Tor Lillqvist
469c9ac2f9 Enforce a "lib" prefix for UNO components for Android
This commit for the old build system. (Don't bother for components not
relevant for Android.)

The Android package installer (as invoked through "adb install", from
"ant debug install") silently ignores native libraries in app packages
(.apk files) whose names don't start with "lib" and end with ".so".

The package builder (as invoked through "ant debug") in the SDK gladly
includes also thusly named native libraries in the .apk, though. Yay
for consistency.
2011-11-17 15:22:59 +02:00
Stephan Bergmann
c1bd2a254b New LO_{LIB,JAVA}_DIR make special inbuild component handling superfluous. 2011-11-10 13:36:20 +01:00
Stephan Bergmann
fecde94354 Undo basis/brand split: moved Python from basis to brand.
The Windows-only code in pyuno/zipcore/python.cxx may still need fixing.
2011-10-20 23:04:12 +02:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Julien Nabet
b2da8254dc There was still overload ambiguous 2011-08-21 11:18:13 +02:00
Lionel Elie Mamane
790d4bd44a OUStringBuffer.append call: add explicit radix to disambiguate overload 2011-08-21 11:03:13 +02:00
Lionel Elie Mamane
cb937e72b8 use boost::unordered_map instead of STL one so as not to require C++0x 2011-08-21 10:37:48 +02:00
Lionel Elie Mamane
ac2359cf84 pyuno: close opened parenthesis in raised exception message 2011-08-21 01:46:09 +02:00
Lionel Elie Mamane
21192c6ea9 pyuno: some comments 2011-08-21 01:46:09 +02:00
Lionel Elie Mamane
58aa95c944 Janitorial: remove unnecessary const_casts
The python C API has consts at these places
2011-08-21 01:46:09 +02:00
Lionel Elie Mamane
d269a18250 Janitorial: remove unused variable 2011-08-21 01:46:08 +02:00
Lionel Elie Mamane
fa43b77422 pyuno: make extractUnoException handle exceptions raised by uno.py loading
This allows having a meaningful error message when extractUnoException
is called from pyuno_loader::getLoaderModule() (via
raiseRuntimeExceptionWhenNeeded()). If it is called to treat an error
that cropped up in loading uno.py, the old code would abort the whole
operation by throwing an exception because... it gets essentially the
same error. The new code leads to a sensible message on the Python
debug console.
2011-08-21 01:46:07 +02:00