705 Commits

Author SHA1 Message Date
Noel Grandin
95c0d568fd use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.

Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05 08:13:23 +02:00
Stephan Bergmann
a1dff2901e Support for annotations in the new UNOIDL format
...used for now to transport @deprecated information.

Also, improve Idx-String (formerly Idx-Name, but also used for UTF-8 annotations
now) format, using the 0x80000000 for the indirection rather than the base case.
(And the README erroneously used "Offset of" Idx-String all over the place.)

Change-Id: I7003b1558ab536a11a9af308f9b16a7ef8840792
2013-05-16 16:12:45 +02:00
Stephan Bergmann
4e42ce3271 Don't call code in UNO object ctor that throws UNO exceptions
...with Context set to this, that leads to refcounting bugs.

Change-Id: I4875dbe4ccb5a7bcfaa8370b14d4eab83c21d0e5
2013-05-08 12:29:53 +02:00
Philipp Riemer
e8eab43eeb cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removal
In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed
automatically leaving several line breaks etc. as visual noise.
2013-05-06 19:21:07 +02:00
Luboš Luňák
e2e2cc6114 remove usage of RTL_CONSTASCII_USTRINGPARAM
Mechanical removal of usage together with OUString ctor, done
by compiler plugin.

Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06 16:51:45 +02:00
Tor Lillqvist
802a87e181 Adapt to library name changes for Android, too
Change-Id: I6da1f38c5a9693c13ef841442cbef017d388416a
2013-05-02 11:58:41 +03:00
Tor Lillqvist
7f7799948e Library names have changed thanks to the "layer" changes
Change-Id: I764702510b612da478959f457f95e6040c22f998
2013-05-01 20:50:42 +03:00
Stephan Bergmann
05713a171f Explicit copy ctor avoiding copying singular iterators
Change-Id: I0727d4676166e63992e78ec3ac7e68c217fa794b
2013-04-30 15:04:20 +02:00
Stephan Bergmann
19d2de7d55 Fix TypeManager
* Make use of unoidl::Manager::createCursor in
  TypeManager::createTypeDescriptionEnumeration

* ConstantDescription::getName returned unprefixed name

Change-Id: I4b2e1ce6a240d8f6292375ad36f71e0b19699367
2013-04-26 10:42:49 +02:00
Stephan Bergmann
ab149c7e3f Get rid of UnoApiMerge_uretypes, which is just a duplicate of UnoApi_udkapi
What is a little confusing is that the udkapi.rdb ends up as types.rdb in the
installation set (in the URE's sub-tree).  So all places that reference it
during the build do so as "udkapi" while all places that reference it in an
installation set do so as "types."

Change-Id: I35d0695966b3bd703f5494b636b9782efc0d3fcb
2013-04-24 10:51:31 +02:00
Tor Lillqvist
6f44df16df Avoid (harmless) duplicate entry
Change-Id: Ice43ab89b57f6ddb6b06d2fc5784d438031e864b
2013-04-24 10:37:55 +03:00
Tor Lillqvist
8ada6e3320 libcomphelpgcc3 got renamed to libcomphelper
Change-Id: I8853c5102a7271e95adf7d420bb3ed719f5b96c6
2013-04-23 19:33:04 +03:00
Stephan Bergmann
5275ed805a Revert "Revert "WIP: Experimental new binary type.rdb format""
This reverts commit 67e69a55820f50973ca0de75ccab2bb07d0bada8, applying a band-
aid fix to cli_ure/source/climaker for now.

Conflicts:
	stoc/inc/bootstrapservices.hxx
	stoc/source/tdmanager/lrucache.hxx
	stoc/source/tdmanager/tdmgr.cxx
	stoc/source/tdmanager/tdmgr_common.hxx
	stoc/source/tdmanager/tdmgr_tdenumeration.cxx
	stoc/source/tdmanager/tdmgr_tdenumeration.hxx

Change-Id: Iae669985d0194f06fa349a4a39f0ebd230bc5d28
2013-04-22 18:25:42 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Stephan Bergmann
1268326e81 Further clean-up related to removed library unloading feature
Change-Id: I1ec2aa4d0ed0940e7c0a26a18c78f2df4693d278
2013-04-16 17:52:37 +02:00
Matúš Kukan
65be07720b do not use deprecated rtl_registerModuleForUnloading
Change-Id: I59014906c8409fc7ac0f155c9562613c309b8b06
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-16 17:52:36 +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
Tor Lillqvist
5ef3e4ca5b Do support the deployment component unconditionally, and add ucpexpand1
Change-Id: I8a3749be43efc77317f7f10c7fd6eadaf79f99c7
2013-03-28 00:17:37 +02:00
Tor Lillqvist
3fcf0008d3 Need deployment component too when HAVE_FEATURE_EXTENSIONS
Don't look just at DESKTOP or not when deciding whether to compile that stuff.

Change-Id: Ic9961ba27eb4a1e9360c67dd844c9243f1eff00e
2013-03-28 00:17:36 +02:00
Stephan Bergmann
2d9ce9191d Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...which is a confusing overload with unexpectedly different semantics from the
one-parameter form.  In preparation of marking it as deprecated.

Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
2013-03-20 13:05:35 +01:00
Thomas Arnhold
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms

Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19 10:48:30 +00:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
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-19 09:00:26 +00:00
Luboš Luňák
2c17beb796 Wundef, fix various more or less broken debug code
Change-Id: I347495f7960da099afdfbf3db608e0347b832f99
2013-03-18 17:15:57 +01:00
Thomas Arnhold
a2454a42ad fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-09 20:32:39 +01:00
Stephan Bergmann
67e69a5582 Revert "WIP: Experimental new binary type.rdb format"
This reverts commit 892ef8b0565c7f5f343d71e3b61c41655f80267b,
Windows-only cli_ure needs to be adapted first.
2013-03-09 13:03:49 +01:00
Stephan Bergmann
892ef8b056 WIP: Experimental new binary type.rdb format
Implement theTypeDescriptionManager directly on top of unoidl::Manager and
unoidl::Provider in cppuhelper instead of on top of css.reflection UNO
interfaces in stoc.  Adapt desktop/source/deployment/ accordingly.

There is no longer a com.sun.star.reflection.TypeDescriptionManager service
implementation now, only a com.sun.star.reflection.theTypeDescriptionManager
singleton one, which appears to not cause problems in practice.

Change-Id: I179501272f0712353b7d50d3eba2ec2bb79db373
2013-03-09 12:08:28 +01:00
Stephan Bergmann
320571bf70 WIP: Experimental new binary type.rdb format
Move unoidl functionality into a module of its own, as a prerequisite to use it
in codemaker etc.  (This is intended to ultimately remove modules store and
registry, modulo backwards compatibility constraints.)

Change-Id: If5274cbd3a595951e6cf7a9664bc542f01833f38
2013-02-25 16:24:44 +01:00
Michael Stahl
113a927341 cppuhelper: log failures from osl_loadModule calls
Change-Id: I37099d15cd403f48ca1716414f2e79cc1213d8c8
2013-02-25 14:27:06 +01:00
Stephan Bergmann
fa559f1c41 WIP: Experimental new binary type.rdb format
Prepare cppuhelper/unoidl.hxx for direct consumption by code that currently uses
registry/ to read .rdb files (e.g., codemaker).  The additional exports will
need to be properly hidden from general users in gcc3.map (and documented,
and...).

Change-Id: I5cdff6fe69ab88435972e16dbda2311450f20ede
2013-02-22 17:24:09 +01:00
Tor Lillqvist
616c6924f1 s/the the/the/
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-22 09:58:19 +02:00
Stephan Bergmann
80d81b40a1 cppcheck: Iterator i used after element has been erased
Change-Id: Id8eb6a475dafcaddc98ddc48627fa8090e91cf4f
2013-02-17 11:13:53 +01:00
Stephan Bergmann
973160bb48 Comment clean-up
Change-Id: I7696dde7337531629d29cce7eb3f882cb4bfad0d
2013-02-14 16:53:12 +01:00
Caolán McNamara
07c3bc01cb WaE: strict-aliasing issues
Change-Id: I394b61fac90e1c2c26b1a4f073b87a5d3ae3e666
Reviewed-on: https://gerrit.libreoffice.org/2105
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-02-11 15:48:45 +00:00
Stephan Bergmann
a6b1ed45fb Fix floating point handling
Change-Id: Ib29dfc71f8c2d0797ead2c32f77bedf7156a3393
2013-02-11 11:45:16 +01:00
Stephan Bergmann
7b235eec10 More typos
Change-Id: I7b1bd08d9e5157c4eacb8ee5005c76e93eb32e63
2013-02-03 23:07:30 +01:00
Stephan Bergmann
02b9e755f7 reg2bin: Shrink output by reusing common strings
...all the "Offset of Idx-Name" in the data format can likely be further shrunk
by getting rid of the newly added level of indirection again.

Change-Id: I322f4869a4d6f2e63802406f998e22beea30db41
2013-02-03 10:44:23 +01:00
Stephan Bergmann
22a722320e Missing reading of # members of polystruct
Change-Id: I343a3e6d57e8f9e1a35cdf3b5825f5a6f58fd133
2013-02-02 18:09:59 +01:00
Stephan Bergmann
57454a3ed8 Keep old GCC happy
Change-Id: If9f9dfd450cd010528dd625f50049f4e963b01a6
2013-01-31 22:16:29 +01:00
Stephan Bergmann
6ec2470a03 warning C4701: potentially uninitialized local variable
Change-Id: I6c24bf51acc0d014ede2f36e17e52cef21753d41
2013-01-31 19:24:18 +01:00
Stephan Bergmann
7a9fed14d4 WIP: Experimental new binary type.rdb format
cppuhelper/source/typedescriptionprovider.cxx would read it if it finds .rdb
files in that format.

Throwaway new reg2bin tool for now can translate existing .rdb files into the
new format.

Change-Id: Iacf219c30cfc358c3d31fb0d73966cf2296a4fe5
2013-01-31 19:09:24 +01: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
Stephan Bergmann
f1bca26afc Remove redundant braces around for loops
...that had once been workarounds for compilers that did not yet support the
C++98 scoping rules for declarations in for-init-statements.

Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2013-01-26 16:36:09 +01:00
Stephan Bergmann
36e8d5d137 Insert type rdbs individually into theTypeDescriptionManager
...to make it easier in the future to replace the binary rdb format with
something else, but also keep support for the old format for backwards
compatibility (extensions).

This should have no performance impact, as the type description manager (a)
caches information about requested type descriptions, and (b) has been changed
to process the bootstrap rdbs en bloc without doing costly consistency checks
(which are useful though when inserting an rdb when installing an extension, but
which would exhaustively read all type descriptions from the inserted rdb, so
would negate any benefit of constructing any type descriptions on demand only).

Change-Id: I80b22770bd9a5e0ab686f04d9c70295f2e3d0bf6
2013-01-18 16:55:04 +01:00
Stephan Bergmann
6059652fba Move addSingletonContextEntries to ServiceManager
Change-Id: I2a4c5b1f1f735e2bf5a8670d2f957f84388f0164
2013-01-16 17:27:00 +01:00
Stephan Bergmann
882aaee5ff UNO methods are no longer called directly on ServiceManager
Change-Id: I037ed9899873e614e9e10c89f1f8a74efa73d737
2013-01-16 17:27:00 +01:00
Stephan Bergmann
41e2b32020 Register theTypeDescriptionManager normally in services.rdb
...no need to handle it specially during bootstrap.

Change-Id: I666dc9c0040a30a7d81ec1815c338be1407281bb
2013-01-16 11:39:03 +01:00
Stephan Bergmann
dcdda1d610 Unfold remainder of add_access_control_entries at call site
Change-Id: I6e1a5a0223c1ea3e1a8c8800fb4cb032719ecf4f
2013-01-16 11:39:03 +01:00
Stephan Bergmann
e1e308bc45 Remove support for UNO_AC* bootstrap variables
...they had effectively never been used.

Change-Id: I514f2b844661e144cef758eb3ce7c4607ffad635
2013-01-16 11:39:03 +01:00
Stephan Bergmann
fb8f3fac70 get_this_libpath only used in paths.cxx
Change-Id: I60bbb6fce36d20d476adc963ad2182f71e9c19c7
2013-01-16 11:39:03 +01:00
Stephan Bergmann
9e2972dbf1 API CHANGE: Remove obsolete cppu::bootstrapInitialSF
An aborting stub is left in cppuhelper/source/compat.cxx to avoid having to
incompatibly change cppuhelper/source/gcc3.map.

Change-Id: I28359397fa9c06ac955ee646b5ad3486e9200a10
2013-01-16 11:39:03 +01:00