summaryrefslogtreecommitdiffstats
path: root/include/comphelper
Commit message (Collapse)AuthorAgeFilesLines
* Various typos on accessibleJulien Nabet2017-02-121-1/+1
| | | | | | | Change-Id: Id28a4a2cbbcec10a7cc9cb40ad208d575352039b Reviewed-on: https://gerrit.libreoffice.org/34161 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* more SAL_WARN_UNUSEDNoel Grandin2017-01-311-1/+1
| | | | Change-Id: Idf44fe0302b4504c443f083e527b63b2461ada85
* Remove dynamic exception specificationsStephan Bergmann2017-01-2644-529/+358
| | | | | | | | | | | | | | | | | | | | | | | | | ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Fix typo in comments: relativ -> relativeTakeshi Abe2017-01-251-6/+6
| | | | | | | Change-Id: I58833e503e93b8057f92710c5828bba6cecd4e09 Reviewed-on: https://gerrit.libreoffice.org/33488 Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp> Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
* lok: New feature flag to turn off tiled annotationsPranav Kant2017-01-231-0/+4
| | | | | | | Change-Id: Ie418642242ada98d4a41f30bb6cefcd57f398ef0 Reviewed-on: https://gerrit.libreoffice.org/33472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
* loplugin: unnecessary destructor: comphelper..desktopNoel Grandin2017-01-235-28/+0
| | | | | | | | Change-Id: I9df4cb6a4b1734dac6141d6b0ee7a09e3e05f92e Reviewed-on: https://gerrit.libreoffice.org/33453 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use rtl::Reference in OPropertyChangeListenerNoel Grandin2017-01-231-2/+3
| | | | | | instead of manual acquire/release Change-Id: Ie80253b5a59a3e3fcd52f98d9c26bcde42fe985a
* use rtl::Reference in OSelectionChangeListenerNoel Grandin2017-01-201-3/+4
| | | | | | instead of manual acquire/release Change-Id: I33e3018b5deb4240d4aff1d8136ae6f8f538c779
* use rtl::Reference in OContainerListenerNoel Grandin2017-01-201-2/+3
| | | | | | instead of manual acquire/release Change-Id: I83e6229029e662073e2e01e98f4846fb0a0ed643
* New loplugin:dynexcspec: Add @throws documentation, comphelperStephan Bergmann2017-01-1919-0/+179
| | | | Change-Id: I115c5c34cf97858d9fdd96432cb57bde6d4537cb
* comphelper: try to fix MSVC buildMichael Stahl2017-01-171-0/+6
| | | | | | error C2027: use of undefined type ´comphelper::PasswordContinuation´ Change-Id: Iff5cfd1a81abc6adfbf1d3aedfb4f871b96d3504
* we can use XInteractionAbort instead of AbortContinuationCaolán McNamara2017-01-171-3/+3
| | | | Change-Id: I7b3a6e0dc4dba345ee9581f4743a3b4fd9f7d736
* use rtl::Reference in DocPasswordRequest and SimplePasswordRequestNoel Grandin2017-01-171-6/+7
| | | | Change-Id: If1bad2bc852712b8315e44480ee81f797736bb95
* use rtl::Reference in MasterPropertySetNoel Grandin2017-01-171-3/+3
| | | | | | no need to store a raw and a smart pointer Change-Id: Ic6b0b716812ec1dca3111f2162379c11389e963a
* use rtl::Reference in ChainablePropertySetNoel Grandin2017-01-171-2/+2
| | | | | | | | | no need to store both a raw pointer and a smart pointer Change-Id: If0bde337e6d9fa575a2fc7104ecffa97a8c37c31 Reviewed-on: https://gerrit.libreoffice.org/33159 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* new loplugin: useuniqueptr: comphelperNoel Grandin2017-01-161-1/+2
| | | | | | | Change-Id: Iafbaff60d10c9de7b57421e0c24809b08d813987 Reviewed-on: https://gerrit.libreoffice.org/33146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#97597: Ensure that each parsing thread has its own buffer.Kohei Yoshida2017-01-141-2/+4
| | | | | | | Change-Id: I93077f954a49b3922930e4fc86c80228be0f4dd2 Reviewed-on: https://gerrit.libreoffice.org/33069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
* tdf#104830, need an own termination listener for lib objectsMarkus Mohrhard2017-01-101-7/+33
| | | | | | | | | | | | | | | | | The destruction of the SwDLL object happens already through the normal termination listener but the other termination listeners might still depend on it. Also the outstanding events might need the SwDLL instance to be still around. This makes the destruction of the instance explicit and at a time when it should be safe. We should use the same code for calc, impress, math and base as well. Change-Id: I50b8f30426f5a4a54e362e748fe962839abca73e Reviewed-on: https://gerrit.libreoffice.org/32856 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* default copy ctor and assignment operator are good enoughCaolán McNamara2017-01-071-5/+0
| | | | | | and block default move equivalents Change-Id: Ib8a1050803446c2e099f66602fae0465bd8165cf
* loplugin:unusedmethodsNoel Grandin2016-12-231-3/+0
| | | | | | | Change-Id: Ife4c8d948ffa116f044d43903de9485e43cfcae5 Reviewed-on: https://gerrit.libreoffice.org/32336 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* There is nothing called FmUnoIOStream or FmUnoOutStream hereTor Lillqvist2016-12-081-2/+0
| | | | Change-Id: Icc85cbd952b82eae0c24b3c406e124575bf37b19
* Another "Do not export whole class to avoid MS C++ implicitly exporting...Stephan Bergmann2016-12-081-5/+7
| | | | | | | | | | | | | | | | | ...base template" (like a90d4d5f036ab7785ba72038936c6c8427b74ba8 did for OSLOutputStreamWrapper), in preparation for <https://gerrit.libreoffice.org/#/c/31679> "tdf#88206 replace cppu::WeakImplHelper* in unotools". Beats me why a solution like 4f918cd5daed963287805da761e6983a392ae050 "comphelper: give up on the XPropertySetInfos for now" apparently doesn't work there---almost feels like MSVC recursively treats as dllexport'ed all the (non- llim-/export'ed) base classes all the way down until reaching a template. Change-Id: Id42610e7fd5c5762dffdeb15623bfe3a37ec0aa6 Reviewed-on: https://gerrit.libreoffice.org/31732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* SafeModeDialog: Add option to reset bundled extension registrationSamuel Mehrbrodt2016-12-061-1/+6
| | | | | | | Change-Id: Ic83ada7cc76142852643cefa60b4fc9286e0756a Reviewed-on: https://gerrit.libreoffice.org/31694 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* SafeModeDialog: Rename to match realitySamuel Mehrbrodt2016-12-061-2/+2
| | | | | | | | | | This doesn't remove shared&bundled extensions, but resets the registration database from shared extensions. Change-Id: I9f198fc7b771fd3bd31547008fd8d006a6d1b5d5 Reviewed-on: https://gerrit.libreoffice.org/31693 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* tdf#104126 - comphelper thread-pool, use reliable std::condition_variable.Michael Meeks2016-12-011-19/+28
| | | | | | | | | | The existing osl::Condition is an API and reliability disaster area. Change-Id: I3be84e1c6a83e58c43c40c9c8720790d923a6694 Reviewed-on: https://gerrit.libreoffice.org/31163 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
* Delete the "Any-to-Any" template specializations for LIBO_INTERNAL_ONLYStephan Bergmann2016-11-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | i.e., css::uno::Any function template specializations Any::has<Any>() const Any::get(Any const &) const operator >>=(Any const &, Any &) operator <<=(Any &, Any const &) that don't make much sense (the first is always true, the rest can be replaced with operator =, which additionally supports move semantics). For 3rd-party compatibility, do this only for LIBO_INTERNAL_ONLY, however. However, some generic template code did benefit from operator >>= working also for Any, so make up for that with a new (LIBO_INTERNAL_ONLY, given that operator >>= still covers if fine for !LIBO_INTERNAL_ONLY) fromAny, complementing the existing toAny. Change-Id: I8b1b5f803f0b909808159916366d53c948206a88 Reviewed-on: https://gerrit.libreoffice.org/30022 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* introduce getValue(sKey) for SequenceAsHashMapJochen Nitschke2016-11-211-0/+24
| | | | | | | | | | | | | returns the plain value (Any) if it exists, else return an empty Any replaces some getUnpackedValueOrDefault calls in sw where is was not clear if the unpacked value exsisted or was default needed for removal of Any-to-Any template specialisations Change-Id: I618da7a7174143f5edef48e47e7aa1b6a52845e1 Reviewed-on: https://gerrit.libreoffice.org/30114 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* make comphelper::sequenceToContainer a little smarterNoel Grandin2016-11-101-0/+9
| | | | | | | | | so we don't have to specify the source type Change-Id: I4106705a39874a8043f0f294a11374404d6cfc3a Reviewed-on: https://gerrit.libreoffice.org/30713 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:expandablemethods in comphelper..cppuhelperNoel Grandin2016-11-103-22/+2
| | | | | | | Change-Id: I9d5487af4729bd3ee4f6450092e4b77f74a12e6d Reviewed-on: https://gerrit.libreoffice.org/30717 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* make comphelper::containerToSequence a little smarterNoel Grandin2016-11-091-0/+9
| | | | | | | | | So we don't have to specify the source and destination type as often. Change-Id: Id9e286417a1cb246d163cbc3c536b231a4a92624 Reviewed-on: https://gerrit.libreoffice.org/30700 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:unnecessaryvirtual in comphelper..formsNoel Grandin2016-11-082-13/+3
| | | | | | | Change-Id: Iabe292e68cb84b97f207061347ed6a30309dc9fd Reviewed-on: https://gerrit.libreoffice.org/30679 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* We have exactly the same file as include/unotools/ZipPackageHelper.hxx.Jan Holesovsky2016-11-051-57/+0
| | | | Change-Id: I2cc545c50a8ae936e73ff23a200f350809ab8335
* SafeModeDialog: Allow to create zip file from profileSamuel Mehrbrodt2016-11-032-0/+60
| | | | | | | Change-Id: I4296d1cf5058be359ffed46745673cf26eba3375 Reviewed-on: https://gerrit.libreoffice.org/30479 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* SafeModeDialog: Add link to user profileSamuel Mehrbrodt2016-11-011-0/+3
| | | | | | | Change-Id: I0096b3d7db51e28eb58c7209109c30b73b382478 Reviewed-on: https://gerrit.libreoffice.org/30448 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* safemode: Add option to disable H/W accelerationSamuel Mehrbrodt2016-11-011-0/+3
| | | | | | | Change-Id: Ic6751717c14d317b5a4bc64c4fd1cf2b2f5efabf Reviewed-on: https://gerrit.libreoffice.org/30112 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Omit the default comparatorTakeshi Abe2016-11-012-2/+2
| | | | | | | Change-Id: Idea8ea8dab6a86d7be6394aef1cf7f25b75009e0 Reviewed-on: https://gerrit.libreoffice.org/30319 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
* Remove bogus comments about ~IPropertyArrayHelper not being virtualStephan Bergmann2016-10-272-6/+0
| | | | | | | ...which isn't true at least ever since b525a3115f54576017a576ff842dede5e2e3545d "initial import", but got copy/pasted all over the place Change-Id: I47d3d8a594aef3ac3736d7176ae964a118821014
* coverity#1374269 Uncaught exceptionCaolán McNamara2016-10-261-1/+1
| | | | Change-Id: Ib3a876ea6463396784062bd53bfedff177818498
* Fix typosAndrea Gelmini2016-10-231-1/+1
| | | | | | | | Change-Id: Ib7b17f85c7b6a1937c3f6e1617ceec58074643b4 Reviewed-on: https://gerrit.libreoffice.org/30040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
* profilesafe: Added more specific optionsArmin Le Grand2016-10-211-0/+13
| | | | | | | | | | | | | | | For Extensions there is the possibility to not only decide enable/disable state for User ones, but also to deinstall user or all extensions, added these options to the dialog and the functionality. Also unified customization name schema to have just one source of strings to avoid errors in the future. Small fix in tryPop_extensionInfo Change-Id: I39acbe9a052ffd4cb78b496f24e5b583136c565a Reviewed-on: https://gerrit.libreoffice.org/30100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
* loplugin:expandablemethodds in include/basic..comphelperNoel Grandin2016-10-211-2/+0
| | | | | | | Change-Id: I1aa9c12e8839325a9fd98530abc89a3d586ff62e Reviewed-on: https://gerrit.libreoffice.org/30120 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* No need for an explicit specializtion of convertFastPropertyValue<bool>Stephan Bergmann2016-10-201-23/+0
| | | | Change-Id: I7b5799ed67b8d5da6cb3e6c4e7c76f05a2ec3853
* profilesafe: Deeper integration with SafeModeArmin Le Grand2016-10-191-9/+25
| | | | | | | | | | | | | | Added deeper integration by saving at SaveMode content of user dir completely to a user/SafeMode dir, including the whole stack of pack files. Repair happens in that safe directory, so that the user dir is resetted to default when re-started in SafeMode. All changes (including complete deletion) are played back to the user config at first restart with disabled SafeMode Change-Id: I5114c7d5d04582be62090707bc9b97afa55fc1f1 Reviewed-on: https://gerrit.libreoffice.org/30003 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
* clang-cl loplugin: comphelperStephan Bergmann2016-10-161-3/+3
| | | | | | | Change-Id: Icde27eeeb21e9049630028e81af10edc1ba8ae04 Reviewed-on: https://gerrit.libreoffice.org/29876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* profilesafe: Adapted to UIArmin Le Grand2016-10-141-0/+23
| | | | | | | | | | | | | Adaptions to UI, added more modes what the user can do in SafeMode. Adapted locations to write pack information and added places where to enter SafeMode. Implemented basically all five possible user choices Change-Id: Ic5324a8f77ab434309e840949c3803e65a75c538 Reviewed-on: https://gerrit.libreoffice.org/29785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
* profilesafe: extended to three modesArmin Le Grand2016-10-131-44/+41
| | | | | | | | | | | | | | | Saving configuration is now extended to three basic modes, from just saving registrymodifiications to adding user-defined config stuff to saving all information in the user profile, additionally configuration information for Extensions is saved. Added configuration entries for this and tested saving/restoring. Change-Id: I79b09c37617803bf656826f76a7e3db79cda49ac Reviewed-on: https://gerrit.libreoffice.org/29770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
* profilesafe: Multiple adaptionsArmin Le Grand2016-10-121-2/+8
| | | | | | | | | | | | | | Added own directory in User config to where the saved content is written and taken from, adapted to also handle ExtensionConfiguration, changed point for creating backups of configuration to doShutdown, create no configuration when a restart is triggered (untested configuration) Change-Id: Id7a96195b765842c31cacf81cc08d2965a205281 Reviewed-on: https://gerrit.libreoffice.org/29729 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
* profilesafe: Add values for SecureUserConfigfeature/profilesafemodeArmin Le Grand2016-10-111-3/+20
| | | | | | | | | | Added default values for SecureUserConfig values to soffice.ini/rc which enable the mechanism, enable by default and set a maximum of three backups file in packed form. Added more handy flag for easy decision to add compressed/uncompressed. Change-Id: I5a624c09fec4e4278314e13fc5f693ac085d5e61
* profilesafe: Collect copies in single *.pack fileArmin Le Grand2016-10-111-15/+23
| | | | | | | | | | | | | | | | | Enhanced helper classes for BackupFileHelper to allow writing a stack of rescued last valid configuration files to a single file package. Added configuration values for enabling this and defining the number of entries, added max entry limitation. Using FileSize and CRC32 now to dectect if config file did change. To make this work I added sorting to writing the configuration so that with no change the same configuration file is written. Use std::vector for better mem performance for sorting, defined static const for buffer size of manipulation, prepare inflate/deflate usages. Fixes to setPos, warnings Change-Id: Ib286e2a3f25b0085a1e3ae4f50c9ff1ff3a5dcf5
* profilesafe: Enhancements to BackupFileHelperArmin Le Grand2016-10-111-0/+14
| | | | | | | | | | Added helper class to allow easy creation/deployment of backups of a file. It works like a 'stack' of backups, supports easy add/remove/delete of last entry (LIFO). Added some work top allow opening dialogs in DeInit under linux. Change-Id: Idacec97ec2f097af9bd22a8a67b410c7677d17f1