summaryrefslogtreecommitdiff
path: root/stoc/source/loader
AgeCommit message (Collapse)Author
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from stocAlexander Wilms
Change-Id: I19edfb2796298c4870124d0d1e9488974a010bb8 Reviewed-on: https://gerrit.libreoffice.org/8316 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-22Introduce static inline cppu::acquire(), and make use of that.Jan Holesovsky
This is much better approach compared to the callback function, as it allows passing arguments to the c++ constructor directly, while still allowing some additional initialization after having acquired the instance. Change-Id: I5a0f981915dd58f1522ee6054e53a3550b29d624
2014-01-21Change _get_implementation()'s not to do initialization directly.Jan Holesovsky
Many of the initalizations (in eg. framework) have to be done on an acquire()'d object, so instead of doing the initialization directly, return the initialization member function back to the createInstance() / createInstanceWithContext() / ... and perform the initialization there. As a sideeffect, I belive the calling initialize() from servicemanager is not that much a hack any more - whoever converts the implementation to be constructor-base has the choice to provide the callback, or still initialize through XInitialization, where the callback is preferred by servicemanager when it exists. Change-Id: I8a87b75c54c1441ca0f184967d31ff4902fc4081
2014-01-20Minimize the constructor functions to a bare minimum.Jan Holesovsky
Most of the constructors are supposed to be only a call of new TheInstance(arguments) or an equivalent; so let's just change the constructor caller accordingly, to accept unacquired new instance. If there are exceptions that need to do more heavy lifting, they do not have to use the constructor feature, or there can be a wrapper for the real implementation, doing the additional work in their (C++) constructor. Change-Id: I035c378778aeda60d15af4e56ca3761c586d5ded
2014-01-18Unify ctor functions for component implementations.Matúš Kukan
There is no need to use different styles for writing the same thing. It also makes it easier in future to use search & replace. But of course, there are also some more complicated functions. Change-Id: I773da20378af0e0d5a27689d3903df7063fb8ac0
2014-01-15Unify ctor functions to have _get_implementation suffix.Matúš Kukan
Change-Id: I07fe0671d0633ef9480a4f3431df6a64c7902db8
2014-01-15Use const& arguments parameter for ctor functions.Matúš Kukan
Change-Id: I19ce8bd1a23123ac9a62a7fc95cd54fea5315221
2013-12-19Add .component <implementation constructor="..." featureStephan Bergmann
...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-18bootstrap component: Split into implementation functions.Matúš Kukan
Change-Id: I91cb0177edd79485eab885e995e79b1a19a769d5
2013-12-13[API CHANGE] remove cppu::loadSharedLibComponentFactory w/ rPrefix againStephan Bergmann
...it was never meant to be called by client code anyway and is no longer needed to be exposed since the global service manager implementation moved to cppuhelper. Change-Id: If2d0510b2364084d36edeb156a3459d9b8aeb983
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-11No need to support "prefix" in DllComponentLoaderStephan Bergmann
...which is only used for extension components, and only while they are live- deployed into an soffice process and thus offloaded to an additional uno process (which never happens for bundled extensions), cf. cppuhelper::ServiceManager::loadImplementation (cppuhelper/source/servicemanager.cxx), and (at least non-bundled) extensions should never use the "prefix" feature anyway, cf. 3bafe5f5f529f6539363c5a291dd13ef1e2cbbde "Extension shared library components must not use the 'prefix' feature." Change-Id: I19c4b71029eccf0c4f3d4481ea5f3542205f685e
2013-10-01[API CHANGE] Stricter requirements for shlib.hxx function argumentsStephan Bergmann
rLibName -> uri must be an (absolute file) URI, rPath must be empty, and xKey must be null in loadSharedLibComponentFactory. While incompatible in theory, these functions should only be called internally, anyway. Change-Id: Iab144b199e4e7db62358283efec6877a5da19bab
2013-10-01IllegalArgumentException is a RuntimeException nowStephan Bergmann
Change-Id: I929da9300cc02da114907841ad8805d1227f3f79
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-19Remove any remaining remnants of unused component_canUnload featureStephan Bergmann
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
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-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
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-01-30Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRINGJean-Noël Rouvignac
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>
2012-06-29re-base on ALv2 code.Michael Meeks
2012-04-01merge origin/masterDavid Tardon
2012-03-21More hacking on static linking (iOS) supportTor Lillqvist
2012-03-12gbuildize stocDavid Tardon
2012-01-12Fix for fdo43460 Part XXXV getLength() to isEmpty()Olivier Hallot
Part XXXV Modules stoc
2011-12-27catch exception by constant referenceTakeshi Abe
2011-11-27remove include of pch header from stocNorbert Thiebaud
2011-07-28we are searching for prefix in activateMatúš Kukan
also fix small typo
2011-06-24re-work prefix handling and undo cppuhelper ABI change, add unit testMichael Meeks
use a separate prefix enabled method instead of changing the ABI of cppuhelper also - lookup the prefix in the dllcomponentloader in case we are called this way also - add a unit test for the prefix change
2011-06-01fix upCaolán McNamara
2011-03-12Move OSL_ENSURE(0,...) to OSL_FAIL(...)Thomas Arnhold
2011-03-03Remove "using namespace ::rtl"Julien Nabet
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth
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-05remove include guards using fixguard.pyPetr Mladek
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2008-04-11INTEGRATION: CWS changefileheader (1.11.10); FILE MERGEDRüdiger Timm
2008/03/31 07:26:10 rt 1.11.10.1: #i87441# Change license header to LPGL v3.
2008-04-11INTEGRATION: CWS changefileheader (1.19.10); FILE MERGEDRüdiger Timm
2008/04/01 15:42:26 thb 1.19.10.2: #i85898# Stripping all external header guards 2008/03/31 07:26:10 rt 1.19.10.1: #i87441# Change license header to LPGL v3.
2007-10-15INTEGRATION: CWS sb71 (1.17.34); FILE MERGEDVladimir Glazounov
2007/10/01 17:25:48 sb 1.17.34.2: RESYNC: (1.17-1.18); FILE MERGED 2007/04/16 13:54:58 sb 1.17.34.1: #i75466# Adapted to new bootstrap_expandUri helper.
2007-09-27INTEGRATION: CWS sb76 (1.10.56); FILE MERGEDJens-Heiner Rechtien
2007/08/31 11:01:54 sb 1.10.56.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
2007-09-27INTEGRATION: CWS sb76 (1.17.46); FILE MERGEDJens-Heiner Rechtien
2007/08/31 11:01:54 sb 1.17.46.1: #i77885# Consolidate stoc libraries; patch by jnavrati.
2006-09-16INTEGRATION: CWS pchfix02 (1.16.10); FILE MERGEDOliver Bolte
2006/09/01 17:41:13 kaib 1.16.10.1: #i68856# Added header markers and pch files
2006-06-19INTEGRATION: CWS warnings01 (1.15.8); FILE MERGEDJens-Heiner Rechtien
2005/10/31 14:38:09 sb 1.15.8.1: #i53898# Made code warning-free.
2006-05-24INTEGRATION: CWS ause043 (1.9.10); FILE MERGEDVladimir Glazounov
2005/11/09 13:33:19 hjs 1.9.10.1: #i56702# remove unused variable
2005-09-08INTEGRATION: CWS ooo19126 (1.8.152); FILE MERGEDRüdiger Timm
2005/09/05 17:10:59 rt 1.8.152.1: #i54170# Change license header: remove SISSL
2005-09-08INTEGRATION: CWS ooo19126 (1.14.18); FILE MERGEDRüdiger Timm
2005/09/05 17:10:59 rt 1.14.18.1: #i54170# Change license header: remove SISSL
2005-06-17INTEGRATION: CWS sb31 (1.13.134); FILE MERGEDOliver Bolte
2005/04/18 13:07:54 sb 1.13.134.1: #121392# Fixed use of OSL_TRACE.
2003-04-23INTEGRATION: CWS uno2 (1.7.60); FILE MERGEDRüdiger Timm
2003/04/08 13:56:15 dbo 1.7.60.1: #107991# UNO shared library component renaming
2003-04-15INTEGRATION: CWS dbgmacros1 (1.12.46); FILE MERGEDVladimir Glazounov
2003/04/10 08:38:19 kso 1.12.46.1: #108413# - debug macro unification.