Commit graph

1737 commits

Author SHA1 Message Date
Ádám Csaba Király
b93b23fe10 Replace rtl::O(U)String with O(U)String
Other changes include:
in bridges/test/testcomp.cxx duplicate 'using namespace ::test' removed,
'using namespace ::rtl' replaced with 'using ::rtl::OUString' and
'using ::rtl::OUStringToOString'

Change-Id: I67a5952afd305adeb07f728c9074620ecba8e9fc
Reviewed-on: https://gerrit.libreoffice.org/2475
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-03-01 13:19:13 +00:00
Michael Stahl
b768611724 remove all d.lst
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28 18:40:06 +01:00
Krisztian Pinter
f6edfefd53 RTL_CONSTASCII_USTRINGPARAM removals
Change-Id: Ib483f271d3c826a2b7192b22a174ff9f7b18c3f8
Reviewed-on: https://gerrit.libreoffice.org/2241
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
2013-02-19 22:11:16 +00:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Michael Stahl
a53586f4ef gbuild: do not copy boost headers around
- 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-26 22:20:06 +01:00
Julien Nabet
3207c85fc9 Another lacking parenthesis
Change-Id: If5944101688b0219d2476e5c3b29f704634c3bcc
2013-01-20 15:23:12 +01:00
Tor Lillqvist
0ff470cff6 iOS C++/UNO bridge fixes
As the inline asm statement stores parameters into r0-r3 we need to
include those registers in the clobber list. Clang happened to store
pMethod in r2 as input to the asm snippet.

iOS uses the basic calling convention, but __ARM_EABI__ is not defined
so amend some ifdefs.

Change-Id: If3d66c5f3baa4dfa13f82a2b5c2ef1ab559ce31b
2013-01-19 23:58:41 +02:00
Tor Lillqvist
806535be2b Use SAL logging instead of printfs
Change-Id: I6221e686fa36cd9061a2a0342a48aaadef903acf
2013-01-19 23:58:41 +02:00
Tor Lillqvist
9c5bb99403 More snippets, and cosmetics
Change-Id: I150981237dc642e46751f0824aeda53dbdb59e5c
2013-01-19 23:58:41 +02:00
Tor Lillqvist
a477138dfa Work on the iOS C++/UNO bridge
Split uno2cpp.cxx and cpp2uno.cxx into separate files for the emulator
(i386) and device (ARM). Much cleaner like that.

Try harder to get the ARM stuff to actually work.

Add the rtti.h and unwind-cxx.h files from libcppabi as such instead
of cherry-picking stuff from them.

Change-Id: Ia238a9ce048116ad796dfb168fd4e5d3b9712ad5
2013-01-19 23:58:40 +02:00
Matúš Kukan
26637fe8f2 optimize for build targets in one place
Change-Id: Ib886a323c1ade6dcd455a44d3dfc6702086416e3
2013-01-10 14:43:32 +01:00
Matúš Kukan
a5838b19bc add rule for generating fresh pot (po template) files
Moved from translations' custom makefile.

Change-Id: Ife58bfa3ee607b06617d7db80408afb453b9a10c
Reviewed-on: https://gerrit.libreoffice.org/1622
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-10 09:30:47 +00:00
Tor Lillqvist
b3aad50859 Be truthful to the compiler about registers clobbered by asm snippet
The asm code loads values into parameter-passing registers r0-r3.
(That is one of the very purposes of the asm snippet.) We need to tell
the compiler that. The compiler does not analyze the asm snippet and
has no idea by itself what it does.

Otherwise the compiler might well put one of the input values to the
asm snippet, like the "pmethod" (the value of the pMethod variable)
into one of those registers, so that when that value then is used in
the asm snippet, *after* r0-r3 have already been modified, it
obviously is totally unrelated to pMethod any more, and the result is
that the code jumps into hyperspace.

Apparently this has worked purely by luck, or thanks to GCC
conservatively avoiding using the r0-r3 parameter-passing registers in
this way. The problem was noticed when using the same code with Clang.

The above analysis tentatively confirmed by Caolán and Jani Monoses,
who wrote the code.

Change-Id: I3018c2e2ccb83e7a71144425fa404ad28bb955d6
2013-01-10 09:22:16 +02:00
Tor Lillqvist
c29098917a Get rid of (most uses of) GUI
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-25 17:53:25 +00:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
Thorsten Behrens
90eac3e697 API CHANGE remove [oneway] method attributes
Remove non-functional and broken [oneway] attributes from all idl
files. Change idl compiler to no longer digest such idl.

Change-Id: Ie14c5012beccb6242d7cd592d434a88091b695d1
2012-11-30 14:36:35 +01:00
Tor Lillqvist
a3ce60eb3c We only support MSVC 2008 (_MSC_VER 1500) or later
We can drop or simplify many conditionals.

Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28 20:53:40 +02:00
Michael Meeks
e5e8136c6a re-factor lifecycle issues in FormattedFieldWrapper.
XAggregation.idl has some rather helpful comments on how this
should work.
2012-11-27 12:55:11 +00:00
Ricardo Montania
1d095efaf9 Some ::rtl::OUString -> OUString in bridges
Change-Id: I5412773f9cebc633a78ee5733b62f64b6d1599d4
Reviewed-on: https://gerrit.libreoffice.org/1068
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-11-26 22:15:08 +00:00
Michael Meeks
17ff7b41d1 re-base on ALv2 code. Includes:
Patches contributed by: Armin Le Grand.
    #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task.
    http://svn.apache.org/viewvc?view=revision&revision=1195906
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166
    #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles
    http://svn.apache.org/viewvc?view=revision&revision=1293316
    #119337# Solves the wrong get/setPropertyValue calls in
    SvxShapeText (and thus in SvxOle2Shape)
    http://svn.apache.org/viewvc?view=revision&revision=1344156

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i117717#: remove wrong assertion
    http://svn.apache.org/viewvc?view=revision&revision=1172349

    Patch contributed by Herbert Duerr
    goodbye Registration and License dialogs, don't let the door hit you
    http://svn.apache.org/viewvc?view=revision&revision=1172613
    help gcc 4.6.0 on 32bit ubuntu 11.10"
    http://svn.apache.org/viewvc?view=revision&revision=1245357

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

Revert "sb140: #i117082# avoid unncessary static class data members
    commit 21d97438e2.
remove obsolete FreeBSD visibility special case.
retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-15 16:06:08 +00:00
Michael Meeks
10511acd08 Revert "sb140: #i117295# use rtl::Static"
This reverts commit d3794d2d8a.

Conflicts:
	bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
	bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx
	bridges/source/cpp_uno/gcc3_ios_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
2012-11-15 16:06:07 +00:00
Ricardo Montania
6e67ad64ef rtl::OUString -> OUString in bridges
Change-Id: I292f2007771ab12a30de6cd5a6a1ed436adcff66
Reviewed-on: https://gerrit.libreoffice.org/1057
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-14 11:09:40 +00:00
Tor Lillqvist
9a745cbf54 Introdude SAL_JNI_EXPORT and use that instead of JNIEXPORT
Use it in the cases where I yesterday changed SAL_DLLPUBLIC_EXPORT to
JNIEXPORT. It turns out that on Linux JNIEXPORT does not enforce
"default" visibility, but expands to empty.

Change-Id: I033b3cf538715fb596e965e17f3da12fb987df63
2012-11-09 10:51:00 +02:00
Tor Lillqvist
031b9d7d86 Use JNIEXPORT to really export these for Android
Now with DISABLE_DYNLOADING, SAL_DLLPUBLIC_EXPORT actually means
hidden visibilty. Which is OK in general as with a single DSO (or a
single executable, for iOS), none of our "normal" entry points need to
be visible froom the outside.

So for the JNI entry points use JNIEXPORT. On "normal" platforms it
should be equivalent to SAL_DLLPUBLIC_EXPORT.

Change-Id: Iad634950e635ac03a0e90cae6d00afd9fb4eeb64
2012-11-09 09:54:12 +02:00
Ricardo Montania
595771d00d More ::rtl::OUString -> OUString in bridges
Change-Id: Ibd29c68077dd8f27c95cd4cb62cd8dad0e18aacf
Reviewed-on: https://gerrit.libreoffice.org/976
Reviewed-by: Radek Doulík <rodo@novell.com>
Tested-by: Radek Doulík <rodo@novell.com>
2012-11-07 12:09:31 +00:00
Ricardo Montania
da67a17d2d ::rtl::OUString -> OUString in bridges
Change-Id: I3a4fa7b108c58f100d2c8a586ec6c76af902e138
Reviewed-on: https://gerrit.libreoffice.org/974
Reviewed-by: Radek Doulík <rodo@novell.com>
Tested-by: Radek Doulík <rodo@novell.com>
2012-11-07 12:06:45 +00:00
Tor Lillqvist
bef4daee66 WaE: unused parameter
Change-Id: I3bc0896d1bb8c281e535d8a55ced1dec707b1d76
2012-11-03 09:32:54 +02:00
Stephan Bergmann
e9a09f9e4a dummy_can_throw_anything reportedly needed at least with GCC 4.5.1, too
...see
<http://lists.freedesktop.org/archives/libreoffice/2012-October/039995.html>
"RuntimeException while building"

Change-Id: I038806d4ca1d7a2a2518106ba722509fbe3a7843
2012-10-22 13:42:54 +02:00
David Tardon
83b8685863 add dep on dir
Change-Id: Ic5de7cb3de3e7ef907a8e331a6db7ecccc690d8e
2012-10-16 13:24:32 +02:00
Michael Stahl
8a3014b8e5 bridges: msvc complains about silly options
Change-Id: I8f2124f13e0a77113dc6b99c2f236bd2077f41b2
2012-10-06 00:00:57 +02:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Tor Lillqvist
35130c7c4d Make this actually work
Change-Id: Icfe773e8f440372645b7a57dba1ab7f8fac3caaa
2012-10-01 15:42:59 +03:00
Michael Stahl
5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
Michael Stahl
80374355ab gbuild: gb_Library_PLAINLIBS_NONE cleanup for unxgcc/solaris
Change-Id: Ia7f64bdd0fd81c5dcc08d828db4602b65e2da949
2012-09-28 16:49:08 +02:00
Michael Stahl
b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
Michael Stahl
2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00
Tor Lillqvist
9f5227d66b Make exceptions work better in the x86-64 MacOSX C++-UNO bridge
Putting the privateSnippetExecutor() assembly code as inline asm
inside an otherwise empty C++ function helps, for some reason.

Use the actual _Unwnd_Exception and __cxa_exception definitions as
used by Apple (from opensource.apple.com libunwind and libcppabi
sources) instead of guessing.

Change-Id: I1ef22a9c0c664d3a357b9a6474406141f53cc490
2012-09-27 23:52:22 +03:00
Tor Lillqvist
0e66cce3a1 WaE: format specifiers in debug output
Change-Id: Ifab851a1294f2e09f31bec9ca517ef6f62b73550
2012-09-27 22:52:56 +03:00
Matúš Kukan
0ed36db9f3 bridges: fix macosx build
Change-Id: If05c724cc0bdebea31c31ba9442710c9d951a0cf
2012-09-27 17:18:37 +02:00
Tor Lillqvist
d83de4b1a9 First attempt at C++/UNO bridge for 64-bit OS X
Basically, a 1:1 copy of the Linux x86-64 one. The Apple docs say that
"The OS X x86-64 function calling conventions are the same as the
function calling conventions described in System V Application Binary
Interface AMD64 Architecture Processor Supplement," which should mean
that it's the same as on Linux.

Once this works, the very minor differences to the Linux one will be
merged as ifdefs into the Linux one, and no separate source files will
be needed.

Change-Id: I1ff58f303a7ab7f59ec2ff7a9e24465e89151ec5
2012-09-27 08:20:44 +03:00
Luboš Luňák
dccddcc20b make gcc-uno bridge work with both gcc-4.7 and clang
It seems b0515ea5fa and e2b7e28c12
conflict, clang requires the extra call, gcc-4.7 crashes with it.
2012-09-26 16:55:37 +02:00
Norbert Thiebaud
750fc20611 replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
David Tardon
0df1e4a80e use correct directory dependency
Change-Id: If9c42a039700df521175962c5f199a36219eb907
2012-09-24 11:46:49 +02:00
Stephan Bergmann
12a8bc4f9c Remove java_uno.map unused after gbuildification
Change-Id: I05893a797e276fd7b4f5c05c09743def55cb4036
2012-09-24 11:17:14 +02:00
Stephan Bergmann
78b99d37b5 JNIEXPORT -> SAL_DLLPUBLIC_EXPORT after gbuildification
(no longer using map file).

Change-Id: Ib19995e11bd5e8bd5c26d29e2bf298e734a06f1f
2012-09-24 11:15:10 +02:00
David Tardon
1c2285bb36 another attempt to fix android ARM build
Change-Id: I36488341d84cb2db05ba564dafa65add79eff9da
2012-09-24 07:52:15 +02:00
David Tardon
31018fa81f really fix make syntax. i mean it! honestly!
Change-Id: Ic56f7d2db6dcf5ec485ae39891f55ccc5d8b2892
2012-09-23 19:53:22 +02:00
David Tardon
a552748316 fix make syntax
Change-Id: I6414a49f867c71c7a9a17bbcc9acd5da35e3a292
2012-09-23 17:27:19 +02:00
David Tardon
a1bd566a68 fix make module.all
Change-Id: I468c9b6e3381383665ee9c86a485831a176982eb
2012-09-23 15:05:56 +02:00