Commit Graph

15 Commits

Author SHA1 Message Date
Stephan Bergmann
02a8e8acd1 [API CHANGE] WIP: Experimental new binary type.rdb format
Make cppumaker work on top of unoidl/ instead of registry/, as a first step to
change all the various codemakers.

* API CHANGE: cppumaker no longer supports the -B switch, as that is meaningless
  with the new format.  When reading from an old-format .rdb file, /UCR is
  hard-coded as the prefix now.

* TODO: The new format does not yet support deprecation annotations, so the
  generated .hdl/.hpp files lack any SAL_DEPRECATED_INTERNALs for now.

* codemaker/typemanager.hxx is extended with access to unoidl/ functionality, so
  the various codemakers can use registry/ and unoidl/ in parallel for now.
  The access to registry/ functionality will be removed.  (Added small throwaway
  helper functions u2b/b2u to easily map between OString and OUString at the
  remaining seams for now.)

* Includes a selective revert of ba044b1e96
  "remove needless forward rtl::OUString declarations" in those parts of
  codemaker, unodevtools, unoidl that were covered by this local
  work-in-progress patch; I would otherwise have hard a hard time re-applying
  it.

* The generated .hdl/.hpp files are mostly unchanged, except for a few minor
  things:

** Any SAL_DEPRECATED_INTERNALs are missing (see above).

** In comprehensive getCppuType definitions, some members were erroneously
   classified as TypeCalss_UNKNOWN.

** In comprehensive getCppuType definitions, some unnecessary calls like

     ::cppu::UnoType< ::sal_Int32 >::get();

   can be removed.

** For typedef sequence<X>, the .hdl file need not include X.hdl, but only needs
   to forward-declare it.

** Unnecessary includes for optional bases of interfaces can be removed.

** Some numbering of local variable names (sMethodName1, ...) has changed.

Change-Id: Icad98f248ac15177337f1b4ab709a755a8af6238
2013-04-09 09:44:33 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-07 14:23:11 +02:00
Stephan Bergmann
bb1f0c667f Clean up codemaker/typemanager.hxx
Change-Id: I650efd6780070410eaf34993dd41ed1b8ada7c9a
2013-03-27 09:36:54 +01:00
Stephan Bergmann
543158edba Require XComponentContext.getServiceManager to throw instead of returning null
This is such a fatal error that there is probably no point in trying to handle
it, so allow to simplify client code by removing the requirement to check for a
null return value.

Simplified some client code accordingly (modules configmgr and ure, and the code
generated by cppumaker and javamaker).

Change-Id: I51c0b270ec73409374f7439a47ee061407a46e31
2012-09-17 16:59:53 +02:00
Michael Meeks
c91e2cae54 re-base on ALv2 code. 2012-06-12 22:24:54 +01:00
Caolán McNamara
7a69e30f96 use rtl_Instance for the auto-generated local statics 2011-06-01 15:35:09 +01:00
Thomas Arnhold
31ca64f91e Remove double line spacing and correct indentation 2011-01-29 15:39:11 +01:00
Sebastian Spaeth
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
Jens-Heiner Rechtien
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Rüdiger Timm
1fb2401e5f INTEGRATION: CWS jsc21 (1.5.52); FILE MERGED
2008/04/23 09:48:45 jsc 1.5.52.2: RESYNC: (1.5-1.6); FILE MERGED
2008/02/13 08:54:57 jsc 1.5.52.1: #i72964# remove external header guards
2008-07-11 12:29:04 +00:00
Rüdiger Timm
08bb753ab6 INTEGRATION: CWS changefileheader (1.5.56); FILE MERGED
2008/04/01 15:04:48 thb 1.5.56.3: #i85898# Stripping all external header guards
2008/04/01 12:26:07 thb 1.5.56.2: #i85898# Stripping all external header guards
2008/03/31 07:22:53 rt 1.5.56.1: #i87441# Change license header to LPGL v3.
2008-04-11 11:09:59 +00:00
Vladimir Glazounov
0f0f97c548 INTEGRATION: CWS jsc3 (1.3.16); FILE MERGED
2006/01/20 13:39:29 jsc 1.3.16.2: RESYNC: (1.3-1.4); FILE MERGED
2006/01/20 13:02:23 jsc 1.3.16.1: #i56247# unify include guards
2006-03-15 08:15:14 +00:00
Rüdiger Timm
22a36fdb5c INTEGRATION: CWS sb41 (1.3.12); FILE MERGED
2005/11/24 08:21:09 sb 1.3.12.1: #i57855# Replaced getCppuType (which is still there for backwards compatibility) with new cppu::UnoType and helper cppu::getTypeFavourUnsigned, as GCC 4.1 started to complain about non-conforming uses of getCppuType in template code.
2006-01-10 14:47:12 +00:00
Rüdiger Timm
f4dcd3fa3d INTEGRATION: CWS ooo19126 (1.2.40); FILE MERGED
2005/09/05 17:28:02 rt 1.2.40.1: #i54170# Change license header: remove SISSL
2005-09-08 01:13:38 +00:00
Oliver Bolte
f581dea257 INTEGRATION: CWS sb18 (1.1.2); FILE ADDED
2004/05/14 16:44:54 sb 1.1.2.3: #i21150# Make the inclusion of header files look nicer in generated header files.
2004/04/28 09:03:00 sb 1.1.2.2: #i21150# Adapted to new Dependencies class.
2004/04/22 08:24:57 sb 1.1.2.1: #i21150# Improved include handling over what class TypeDependency offers.
2004-06-04 02:12:59 +00:00