summaryrefslogtreecommitdiffstats
path: root/comphelper
Commit message (Collapse)AuthorAgeFilesLines
...
* tdf#74608 comphelper: Constructor feature for AnyCompareFactorykripton2016-02-014-29/+8
| | | | | | | Change-Id: If5d35828a7309b6916de65282e32ce1ad459a15f Reviewed-on: https://gerrit.libreoffice.org/21936 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#74608 comphelper: Constructor feature for NamedPropertyValuesContainerkripton2016-01-314-30/+8
| | | | | | | Change-Id: I63390eca5c887bfd84846655cef6339ba9785e24 Reviewed-on: https://gerrit.libreoffice.org/21888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
* OSL_THIS_FUNC is a rip-off of BOOST_CURRENT_FUNCTION so we can use thatCaolán McNamara2016-01-313-8/+2
| | | | | | | | | | as a direct drop in I guess Change-Id: I3add63f1459f4e659019bd6db54da2f5431958ce Reviewed-on: https://gerrit.libreoffice.org/21941 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#74608 comphelper: Constructor feature for IndexedPropertyValuesContainerkripton2016-01-304-31/+8
| | | | | | | Change-Id: I0e9ea9e4c750918b33040dad2279fe55facd4cab Reviewed-on: https://gerrit.libreoffice.org/21858 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
* sequence->vector in OInteractionRequestNoel Grandin2016-01-291-5/+3
| | | | Change-Id: I995cb96e514e1aaa05a96f29344ef51e4ca83c64
* sequence->vector in OSimpleLogRingNoel Grandin2016-01-292-5/+6
| | | | Change-Id: Ief35ce33a11c93a4a78e50ccdd936ec7e17102a2
* sequence->vector in AttachedObject_ImplNoel Grandin2016-01-291-15/+9
| | | | Change-Id: I457de7e83554fbea0a9c5a50c628664fa3887df4
* cleanup OInterfaceContainer2 unit testsNoel Grandin2016-01-252-85/+34
| | | | | | | remove unused code and actually hook up the tests in testifcontainer.cxx Change-Id: I9694ebe44f1e8eed3d72373d62424345f899c8e6
* loplugin:overrideStephan Bergmann2016-01-251-2/+2
| | | | Change-Id: I9a67ed46a67be521d00ed2368b4820737dcb15e5
* loplugin:cstylecastStephan Bergmann2016-01-251-6/+6
| | | | Change-Id: Ie2aeedac1b3fd90d6302be6e5917e99a782d76c7
* InterfaceContainer2 with vector instead of SequenceNoel Grandin2016-01-2513-21/+715
| | | | | | | | | | create an InterfaceContainer2 class to replace InterfaceContainer. It uses a std::vector instead of a Sequence for the mutable listener list, which provides far better performance. Switch all our internal use-sites to the new class. Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
* tdf#97108: SwDocShell of clipboard document has no base URLMichael Stahl2016-01-131-1/+2
| | | | | | | | | ... which triggers this assert; have to downgrade it to SAL_INFO. The startsWith("0x") check is obsolete anyway since commit 0f02bc189b6e89ca2e62d4bd6a2f407a9fd4ec3b. Change-Id: If47bc4496852ff85ba1bbeb4205ffc16be0782de
* loplugin:unusedmethods unused return value in comphelperNoel Grandin2016-01-112-5/+3
| | | | Change-Id: If95e3fa61a2c63c4ffc78ef5c27ea5c59088170d
* crashtesting: fdo85994-1.doc assert on reexport to docCaolán McNamara2016-01-091-5/+11
| | | | | | | try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: I1a660ff6e4874321e0308d556c7ce0e10a2605fe
* Fix typosAndrea Gelmini2016-01-075-7/+7
| | | | | | | Change-Id: I90b04b8eda6fc3d530c9db72052720cbe9de0343 Reviewed-on: https://gerrit.libreoffice.org/21197 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* new loplugin rangedforcopy - use reference in range based forAndrzej Hunt2016-01-051-1/+1
| | | | | | | | | Inspired by 6e6ae9803796b120e95f6e89575e03c5fd0ed3c2 Change-Id: Ia0f264d3a6bbf076aa5080e3398683e50bc6ef01 Reviewed-on: https://gerrit.libreoffice.org/20190 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#74608: Constructor function for OfficeInstallationDirectories singletonMatúš Kukan2015-12-275-63/+33
| | | | Change-Id: Ia0de503c50b6b1d568df27f6a8139fdcc8d0cfbf
* tdf#74608: Constructor function for OfficeRestartManager singletonMatúš Kukan2015-12-275-45/+29
| | | | Change-Id: I6c1383c292418b6744dacee95d4f289a6ca1c781
* crashtesting: fdo73974-1.doc assert on reexport to docCaolán McNamara2015-12-241-2/+7
| | | | | | | try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: Idfc44d90e4f73f23976e8648c504786955b4fce6
* OModule::onFirstClient is unusedNoel Grandin2015-12-241-9/+4
| | | | | | | | | | | also move the MutexGuard in revokeClient. No need to hold it while doing an osl_atomic_increment. Save it until we actually need to call onLastClient. Change-Id: Ia87f24b66b0430604a2fe717c95223ff1f5ece6d Reviewed-on: https://gerrit.libreoffice.org/20919 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:unusedfields in chart2Noel Grandin2015-12-233-9/+5
| | | | Change-Id: I8203f84ad8b138932c990032e17ea5d2daf384bb
* loplugin:unusedmethodsNoel Grandin2015-12-217-64/+0
| | | | Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
* sw: set a BaseURL when copying embedded objectsMichael Stahl2015-12-151-1/+2
| | | | | | | | | Turns out that SfxObjectShell::CreateShellID() will produce the SfxMedium's base URL if it exists, so EmbeddedObjectContainer::CopyAndGetEmbeddedObject() already has parameters, sw just needs to set them. Change-Id: I36cedfde4e7c2e25c43c66a30d8ca572f099ad69
* fix missing BaseURL when loading embedded objectsMichael Stahl2015-12-151-6/+18
| | | | | | | | | | | | | | | | | | | | When the object is edited in the UI, the m_xClient is set to a SfxInPlaceClient and the DocumentBaseURL is retrieved from it. But if the object is not edited, it will be loaded during export via the API and without a m_xClient; in this case the DocumentBaseURL must have been set previously to be available during import. There appears to be no way to get the URL of the document via the API while it is being imported; SfxBaseModel's m_sURL is unfortunately only initialized from SfxObjectShell::FinishedLoading(). During ODF import, the SvXMLEmbeddedObjectHelper creates the embedded object, so let's make it pass in the parent's BaseURL. The "DefaultParentBaseURL" parameter already exists but was unused previously. Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733
* That SB variable was a temporary debugging aidStephan Bergmann2015-11-261-2/+4
| | | | | | | ...inadvertently checked in with 7bcf64c29a0f5d3d2d60fe98afadab6e48dbe8b3 "Add isReadOnly() support to simplified configuration access" Change-Id: I9b8b477f682605fcdcf65f8e1255524d010495be
* mark UNO structs as SAL_WARN_UNUSED, where possibleNoel Grandin2015-11-261-5/+2
| | | | Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
* loplugin:unusedfields in include/comphelper,include/editengNoel Grandin2015-11-241-1/+1
| | | | Change-Id: I619c2cf1765df97159fc52ee84e0e9e8d16a22fe
* Seems more natural to pass a homogenous list by initializer_listStephan Bergmann2015-11-202-50/+14
| | | | | | | ...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
* loplugin:unusedfields in comphelperNoel Grandin2015-11-201-3/+0
| | | | Change-Id: I2e410c973af2eb443fee8fe787920bf6bc205d95
* loplugin:sallogareasStephan Bergmann2015-11-201-1/+1
| | | | Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
* add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin2015-11-204-33/+7
| | | | | | | | | and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use comphelper::containerToSequenceNoel Grandin2015-11-191-3/+2
| | | | | | in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-177/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-155-10/+5
| | | | | | | | | | | | | replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-153-6/+3
| | | | | | | | | | | | | | replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Namespace cleanup and disambiguationAshod Nakashian2015-11-122-51/+50
| | | | | | | | Change-Id: Ib6d2f8b4e71436c3a7c26bdfc9847152ebaf0739 Reviewed-on: https://gerrit.libreoffice.org/19900 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1033-118/+118
| | | | Change-Id: Ibd0e6ae5e3243464b2484a009f2b4781bdaac471
* new loplugin: oncevarNoel Grandin2015-11-091-12/+6
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Cleanup two unused boost/bind includes in comphelper.Mario J. Rugiero2015-11-092-2/+0
| | | | | | | Change-Id: I8bfbbc82be3a91d7227ff76fc6eb570c1155dd4f Reviewed-on: https://gerrit.libreoffice.org/19844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-062-7/+7
| | | | Change-Id: I779e46c9c0db80485d213117028896a7e5b9e943
* java: make inner classes static where possibleNoel Grandin2015-11-051-2/+2
| | | | Change-Id: Icc6444ad15d9f4b50858d8c1b1d3adeaeac40926
* yyyyyNoel Grandin2015-11-044-11/+7
| | | | Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
* lok: Introduce LOK_CALLBACK_UNO_COMMAND_RESULT callback.Jan Holesovsky2015-11-031-2/+7
| | | | | | | | | | | | Posting of the .uno:Something commands is asynchronous. To be able to find out when eg. .uno:Save finished, this commit introduces a callback that fires when that happens. To be able to receive such a notification, the appropriate postUnoCommand() must be called with 'true' as the parameter for bNotifyWhenFinished (defaults to 'false'). Change-Id: I254939ebc8ea5f309ae39686dcaaeddd5148b0c9
* Assume this shall be conditional on DBG_UTILStephan Bergmann2015-11-021-2/+2
| | | | | | ...and not that MSVC-special _DEBUG Change-Id: I927f1d49dcbb24fd8fb91032ded6215390c97d79
* use uno::Reference::set method instead of assignmentNoel Grandin2015-10-3010-31/+27
| | | | Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
* UNO: no need to use OUString constructor when calling createInstanceNoel Grandin2015-10-304-5/+5
| | | | | | | Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Initialize Sequence<beans::NamedValue> from initializer_listsNoel Grandin2015-10-291-13/+11
| | | | Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
* loplugin:unusedmethodsNoel Grandin2015-10-271-14/+0
| | | | | | | Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* remove extra spaces around ::Noel Grandin2015-10-261-1/+1
| | | | | | just makes it harder to grep for methods Change-Id: I0925db2f9284972fcf7e1e3adf90cbe21f69eb15
* tdf#39440: fix several warnings reported by cppcheckSerge Krot2015-10-251-2/+1
| | | | | | | Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae Reviewed-on: https://gerrit.libreoffice.org/19587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>