Commit Graph

54 Commits

Author SHA1 Message Date
2ada2b3375 typo: dependend -> dependent 2014-04-14 12:31:58 +02:00
6835d9f307 It's "its", not "it's"
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-10 20:22:50 +03:00
df2c663fef fdo#43157 [API CHANGE] Remove deprecated _OSL_GLOBAL
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Conflicts:
	include/osl/diagnose.h

Change-Id: Ie2e6b7a8546318bdd8b81261bef46bf92c0c125f
2014-04-08 11:18:19 +02:00
22ab56f5e3 fdo#43157 : clean up OSL_DEBUG_ONLY
Change-Id: Ic92b64cfaec41bf4104cede5f26579d86543b9a8
Reviewed-on: https://gerrit.libreoffice.org/8804
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
2014-04-05 03:47:34 -05:00
97354578d7 Remove the obsolete functionality originally underlying osl/diagnose.h
...before that got rebased onto sal/log.hxx.  That functionality is considered
an implementation detail, so it should be safe to remove it from the URE
interface.  As usual, aborting stubs are retained for SONAME stability.

Change-Id: If948b9714c26a3871e38dea4d4d5b5466d6ee258
2014-03-25 16:17:09 +01:00
bd8ce8b959 sal,toolkit,unotools: prefer passing OUString by reference
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-17 09:00:07 +02:00
1b6e87fc23 remove confusing and potentially dangerous premature-optimization
Change-Id: Ia23f591519eba257441b725a219a1eddda937c39
2014-03-08 16:36:56 -06:00
8792ec7b21 Remove visual noise from include
Conflicts:
	include/framework/preventduplicateinteraction.hxx
	include/sfx2/sfxbasecontroller.hxx
	include/sfx2/sfxbasemodel.hxx
	include/toolkit/awt/vclxtabpagemodel.hxx
	include/vcl/field.hxx
	include/vcl/settings.hxx

Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2
Reviewed-on: https://gerrit.libreoffice.org/8272
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01 09:51:32 -06:00
3774a6fd94 Support direct ctor calls for singletons too.
Change-Id: I6db797c950b8222b3ad95faff86adf5e7b41ff4b
2014-01-28 18:52:21 +01:00
e344d2ac32 Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Change-Id: Ibf43c5ded609b489952e1cc666cac1e72ffa2386
2014-01-27 10:47:33 +01:00
a69875fbfc Experimental direct constructor calls for more services.
Change-Id: I18f56b674088d750cf06a409e547a7f59be22d61
2014-01-23 11:41:28 +01:00
9dae84647a component-defines.h should be generated.
Change-Id: I759d119e0ad6c5ae2881284c82292d4d9cb7ae87
2014-01-20 18:18:46 +01:00
df31a0e3ed Fix fallout after a700ce8e2b2f2dad50bf36dfd69de577211f1dc3
Change-Id: I489126d291f9420aa1692d4b1f187f72dfd92a62
2014-01-15 20:12:22 +02:00
921e2dc039 Reduce the number of experimental direct constructor calls.
It puts the function into binary in cases we don't want it for mobile platforms.
We want to generate this list later anyway.

Change-Id: I59be18b7b394254d845f5b2de02684c774510174
2014-01-15 15:12:02 +01:00
be58acfe2b Thinko: The macros must be based on service instead of implementation names
Change-Id: I80fe00310f934fa335ade5fcdef41c44cc6ab69c
2014-01-06 16:59:17 +01:00
645fb66bbd Use native-code.py generated code also for iOS.
This allows us to get rid of component-declarations.h and
simplify component-mapping.h.
For new, converted, implementation_getFactories, adding one line into
native-code.py should be enough to make them available in application.

Change-Id: I042320e5b7f8a9aa9f02b77d2bdd07cf9a690ee6
2014-01-01 17:33:29 +02:00
09af884e7b Revert "svx: split into direct implementation getFactories"
Also reverts "These services are in fact implemented in svxcore library."
This reverts commit 090674dcb085cd41f4628e4f07c9a2268a18e862
and commit 4a969ac35174520f1ffeb4f919f5d7bb6d99a628.

This is embarrassing; needs more work.
2013-12-20 22:58:29 +01:00
4a969ac351 svx: split into direct implementation getFactories
Change-Id: I888f10a923dc2b97247b2a66cc6bd116eee280a7
2013-12-20 16:26:35 +01:00
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
37b0ec6dcb Missing eol backslash
Change-Id: Ia3fd6c84c430fcce30779f9b554090a322e6fd9a
2013-12-19 15:49:39 +01:00
645dac2f94 Deduplicate more components.
No one says this is the only good classification.
Quite possibly it's not even a good one, but at least something.

Change-Id: I81178314222f9f63708a83b262ff8ef73a1d9467
2013-12-19 15:34:33 +01:00
43e2cf590a Deduplicate calc components.
Hopefully it makes sense, I don't know.
Inspired by Debian packages.

Change-Id: I8caf2d4aa75b8f6de3cc7da9eb293955a4ed58d8
2013-12-19 15:34:32 +01:00
e05e58948c Deduplicate writer component factories.
Change-Id: I0b82e8a284f871829b7c22a654d61534b5c5a3cc
2013-12-19 15:34:30 +01:00
15abebbde5 WIP: Direct service ctor calls at least on Android/iOS
Change-Id: I8a1907bc4b8f2134efb15d38a0fb5176b4384317
2013-12-19 14:42:10 +01:00
61e02585ea Fix up constructor function declarations
Change-Id: I68ec96b20da1603e5cafd31d620d8dd54306627a
2013-12-19 09:58:59 +01:00
ad4e451070 Deduplicate a lot of common components.
Change-Id: Ic3eb95119eed7a691c9cd0c677f28c87395b9415
2013-12-19 09:41:45 +01:00
ae3a0c8da5 Add .component <implementation constructor="..." feature
...to directly call constructor functions of ComponentContext-based C++
implementations of (non-single-instance) UNO services.  The case where these
calls would need to be bridged across different environments (e.g., from gcc3
to gcc3:affine) is not yet implemented.

bootstrap.component and expwrap.component are adapted accordingly as a proof-of-
concept (which had previously been adapted to use the prefix="direct" feature,
which may become unnecessary again in the end, depending on how to handle
single-instance services/singletons).  More to follow.

Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
2013-12-19 08:48:56 +01:00
80d977b896 Introduce osl::Module::release
...to make osl::Module useful in cases where there underlying library shall
remain loaded after the Module instance is destroyed.

Change-Id: Ie2c9c094207f159b900620d394f489d49ffa36d2
2013-12-19 08:43:57 +01:00
d8bbae2fd6 Get more --disable-dynamic-loading code out of shlib.cxx.
It's not terribly nice, but, hopefully, better.
The hope is that one day, lo_get_library_map will be no more.
In lo_get_implementation_map we can specify more precisely what to link
into the binary.

Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
2013-12-18 07:15:49 +01:00
e20f27f0a0 bootstrap component: Split into implementation functions.
Change-Id: I91cb0177edd79485eab885e995e79b1a19a769d5
2013-12-18 07:15:49 +01:00
562b21949f Deduplicate some foo_component_getFactory declarations.
Change-Id: I9304b62134bab375b721399ae078bf66e01191d8
2013-12-18 07:15:47 +01:00
3c2e8e3484 add health warning on osl condition.
Change-Id: I24619afb8b1ea0410e95e60fe70b5166e18fab44
2013-12-02 11:54:59 +00:00
c0afa5b7ff Don't let Doxygen document the #define BOOST_NO_0X_HDR_TYPEINDEX
Change-Id: I3df112c840ccac71fb34d39900b3be3630b9c5a6
2013-11-28 13:15:38 +01:00
80a1fb03e3 Fix some typos for "Right"
Change-Id: I6bcdb57ab45d5571bde53a6c43fe104551197086
2013-11-25 22:36:34 +01:00
e4b993e95d What is a "thread-local" mutex?
Change-Id: Idb0ca4bcefea4c1927e8238d3371c9044103239f
Reviewed-on: https://gerrit.libreoffice.org/6651
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-11-13 08:53:35 +00:00
a525fa4402 fdo#65108 inter-module includes <> include/osl
Change-Id: I0490192db3d6b46c6b181ae122028e11682a13cf
2013-11-09 18:48:41 -06:00
10d0526d72 fixincludeguards.sh: include/o*
Change-Id: Ibd5d8af00f6582d53231c76e2b04e737b5804497
2013-10-23 23:22:30 +02:00
7921e92cf9 remove external include guard
Change-Id: I78a816b23a0cc118a61a39ca21d6ec234fd39749
2013-10-23 23:22:28 +02:00
e9f260b380 Minor refactoring of iOS code
Rename functions so that functions called by the UI layer for actions
to happen in the LO layer and functions called by the LO layer for
things to happen in the UI layer use different prefixes. Move
declarations to the generic <touch/touch.h> and avoid iOS-specific
types in the API.

Change-Id: Ieb8979065e02a87c4a415c934163265f2790d011
2013-10-13 23:17:38 +03:00
c24855bc6a lo_dlcall_argc_argv() is unused
Change-Id: I318bb78b148564f64373dcb87bfb458c10f87489
2013-10-13 21:24:36 +03:00
da69a3ef5c iOS experimental app support for selection marking via long press gesture
Change-Id: Ib7a71797a2dc967f9d8ddd60fdc10c78201a87c8
Reviewed-on: https://gerrit.libreoffice.org/5911
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2013-10-11 08:19:50 +00:00
4e7495ac2c Fix for iOS scroll by pixels, and pinch to zoom
Minor further changes by tml to match the coding style of surrounding
code mainly.

Change-Id: Ied6087a264f1c6b00763ea36fba9808329afede4
Reviewed-on: https://gerrit.libreoffice.org/5742
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2013-10-09 14:37:46 +00:00
c850f000e7 API CHANGE: Remove osl_getEthernetAddress and osl/util.h .
Also move osl/util.c on Unix systems to osl/system.c.

Change-Id: Ifff79d9f4f89ecbb4e0e1652b40ab46b7d569adf
Reviewed-on: https://gerrit.libreoffice.org/6065
Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
2013-09-30 16:26:32 +00:00
b4f8efc3bc typo fix: absoulte -> absolute
Change-Id: Ib728cb9bac3f42e17649685b4413b9335f2dc2c4
2013-09-07 15:59:10 +02:00
760bba09f0 WaE: possible loss of data
Change-Id: Ib442a7cae9f4c9bc5e32c20f1e1844a191f5b057
2013-08-30 12:13:44 +03:00
fa6ce5a6e8 API change: osl/time.h take const pointers where appropriate
Should be backwards-compatible...

Change-Id: I6b04bec2c032ff8c57a1b5192b2d3962dcc96c84
2013-07-05 12:22:03 +02:00
8db392f1be API change: oslDateTime signed year
Change-Id: Ic4f1e424b130fd2ccca379adbe0a66836b6cac41
2013-07-05 12:22:03 +02:00
d7ae9f7743 rename HAVE_CXX0X->HAVE_CXX11 and clean up to #define in a config header
Change-Id: Id13e77fe890301a8510952994a91853568a7aea6
2013-06-13 20:08:16 +02:00
8c3657658a Tweak comments
(Preventing documentation of macros via @cond ... @endcond is apparently at
least broken in Doxygen 1.8.3 and working in Doxygen 1.8.4.)

Change-Id: I2ee582119dba2c3d27db5298786d3076921af46d
2013-05-29 15:03:01 +02:00
f0199f76e0 Use C++ static_cast
Change-Id: I36793cf0144de5e051d277e70457f36dbfc933ff
2013-05-23 08:49:24 +02:00