summaryrefslogtreecommitdiffstats
path: root/configmgr
Commit message (Collapse)AuthorAgeFilesLines
* tdf#96099 fix trival typedefs, Path to std::vector<OUString>Jakub Trzebiatowski2016-03-1519-101/+50
| | | | | | | Change-Id: I23fca48becbfdfd92db02a11b739a668fc1cd8c4 Reviewed-on: https://gerrit.libreoffice.org/23007 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Let's use the iterator return by erase method (part b)Julien Nabet2016-03-121-1/+1
| | | | | | | | | std::list seems ok but let's try for std::set and std::multiset Change-Id: I1d4875468517c732680ba98ac9f2e08d1baa61bd Reviewed-on: https://gerrit.libreoffice.org/23161 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* tdf#97703 Removed empty setUp/tearDown methodsChirag Manwani2016-03-081-5/+0
| | | | | | | Change-Id: Ia62de30ae94bdae87cd5109c44eab40af4d020e5 Reviewed-on: https://gerrit.libreoffice.org/22985 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* use consistent #define checks for the Windows platformNoel Grandin2016-02-173-4/+4
| | | | | | | | | | | | stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Remove excess newlinesChris Sherlock2016-02-094-4/+0
| | | | | | | | | | | | | | | | | | | A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* tdf#70998 Termchange: Graphic/Picture->Imageakki952016-02-021-2/+2
| | | | | | | | | Changed visible terms as required. Change-Id: Id4335629977aa8512c753241d7c2203820716b73 Reviewed-on: https://gerrit.libreoffice.org/21857 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Fix typosAndrea Gelmini2016-01-073-3/+3
| | | | | | | 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>
* Kill remaining plugin bitsMaxim Monastirsky2015-12-301-24/+0
| | | | | | | Change-Id: Icd99757b48626ef43313e8de42c4e5462f85a958 Reviewed-on: https://gerrit.libreoffice.org/21008 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
* loplugin:unusedfields in chart2Noel Grandin2015-12-231-1/+0
| | | | Change-Id: I8203f84ad8b138932c990032e17ea5d2daf384bb
* cppcheck:useInitializationListNoel Grandin2015-11-225-14/+14
| | | | | | | Change-Id: I744ff3e268fbffca9499121f3567640934aaae51 Reviewed-on: https://gerrit.libreoffice.org/20110 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-108/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1016-109/+109
| | | | Change-Id: I520c7e35d539ba804da17185353317eca504a582
* new loplugin: oncevarNoel Grandin2015-11-096-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>
* Replace a local functor in configmgr by a lambda.Mario J. Rugiero2015-11-091-21/+2
| | | | | | | Change-Id: Ida4317ec6b96ab8cb3362243b4acace3680bcd31 Reviewed-on: https://gerrit.libreoffice.org/19846 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (manually due to macros)Stephan Bergmann2015-11-061-12/+12
| | | | Change-Id: I409ea5a7e4b6a8e2886d5b489b66b217b3be58b6
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-061-13/+13
| | | | Change-Id: Iab64ec9b325da65b90d79f3c986e97774825f6e2
* yyyyyNoel Grandin2015-11-041-13/+6
| | | | Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
* tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni2015-11-023-10/+10
| | | | | Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
* no need to use OUString constructor in call to createInstanceNoel Grandin2015-11-011-4/+2
| | | | | | | Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296 Reviewed-on: https://gerrit.libreoffice.org/19704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use uno::Reference::set method instead of assignmentNoel Grandin2015-10-303-4/+3
| | | | Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
* Get this remove/re-add dance finally sorted out for goodStephan Bergmann2015-10-301-1/+6
| | | | Change-Id: I16cb3fdd699dcd45de25b49d30e0d1b6392fd82b
* loplugin:unusedmethodsNoel Grandin2015-10-301-2/+0
| | | | | | | Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* configmgr/dconf: Simplify Fleet Commander write-back modeStephan Bergmann2015-10-213-14/+31
| | | | | | | | | | | | | * Get rid of different dconf trees for reading and writing again; the one single tree is /org/libreoffice/registry/. * Trigger the special write-back mode when a file $SYSUSERCONFIG/libreoffice/dconfwrite is present; then, ignore the default user:!... entry in CONFIGURATION_LAYERS (i.e., don't use the UserInstallation's registrymodifications.xcu) and instead write changes back to the dconf tree. Change-Id: I6b4d7251851da3fe7abbc9dcb080d57b278de96b
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1219-219/+219
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1214-31/+31
| | | | Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
* Create a wrapper to make listening for configmgr changes easy.Michael Meeks2015-10-092-0/+51
| | | | | | | Change-Id: Ib58d04f9e046e604b24e0e338796a7a60aa1d6fd Reviewed-on: https://gerrit.libreoffice.org/19253 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
* configmgr: remove unused old dmake fileMiklos Vajna2015-10-021-84/+0
| | | | Change-Id: Idbeadeaebf85c9de84d6fafe4d140c77907c0eeb
* Revert function removal that breaks --enable-dconfStephan Bergmann2015-10-011-0/+2
| | | | | | ...from 58aea3f36c14414f95668e229a7350598f6c53a8 "loplugin:unusedmethods" Change-Id: I2b218ca01589f3d2efd583aa4e5fb21d19d6319e
* loplugin:unusedmethodsNoel Grandin2015-10-012-3/+1
| | | | | | | | | | | | - improvements to the plugin to find more method calls - improvements to python script to remove more false+ - fix the FORCE_COMPILE_ALL build flag to include code in the $WORKDIR Change-Id: I4d6015dcb9b9d60c26f0bcee8abad807177a7836 Reviewed-on: https://gerrit.libreoffice.org/19064 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Avoid false -Werror=maybe-uninitializedStephan Bergmann2015-09-291-1/+1
| | | | Change-Id: I5493c49eb97c630e91cdc8368ad8b017557f1fa1
* Report nil-valued localized property as suchStephan Bergmann2015-09-231-2/+1
| | | | | | | ...regression introduced with 879aa54e895a56cb65f93ae98e6a9e7b08981a47 "configmgr: accelerate simple config key fetches." Change-Id: Ifb732a25d902f58c76e06ebaad3a6178ff102f58
* cppcheck: noExplicitCopyMoveConstructorCaolán McNamara2015-09-071-1/+1
| | | | Change-Id: I8718ddd144bec48541e6412a8c9feb74d9391ecc
* Restored missing includes from source files.Ashod Nakashian2015-09-031-0/+1
| | | | | | | | | | | | | | | | | These source files relied on pch to include these missing headers (at least on Windows). Also included the script used to find the missing includes. The script is self-contained and includes unittests. It detects superfluous includes and required includes (which was used to restore the includes in this patch). Change-Id: I7ee09e5c712f42d5f6c3524898bc62dda78f5cc0 Reviewed-on: https://gerrit.libreoffice.org/18208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Fix documentationStephan Bergmann2015-09-021-1/+2
| | | | Change-Id: I8fc081d3f445a362f5e1ee735ce8baeab1d6cc9b
* configmgr: Split dconf in two /org/libreoffice/registry/{system,user}/Stephan Bergmann2015-09-023-6/+11
| | | | | | | | | | | | | | | ...so that the lower-layer "dconf:*" reads from the .../system/ dconf tree while the final-layer "dconf:!" reads from and writes to the .../user/ dconf tree. Using a single tree would not really work: For one, a sysadmin will want to finalize a property so it cannot be changed by extensions; that means that property must be set and finalized in the lower-layer "dconf:*". But for another, a user will want to change a property for which an extension provides a value; that means that property must be set in the final-layer "dconf:!". So the two "dconf:*" and "dconf:!" must store their respective data in different places. Change-Id: I9029e7f779bcb86e8f26cfc22401e97e0cb3362b
* configmgr: support writing back to dconf (WIP)Stephan Bergmann2015-09-014-3/+594
| | | | | | | Needs to be enabled manually for now by changing CONFIGURATION_LAYERS's tail from " user:..." to " user:*... dconf:!". Change-Id: I31cd806f21d2ded376832faf98f49167b7243d1c
* dconf: Change the way set elements are encodedStephan Bergmann2015-09-011-96/+136
| | | | | | | | ...to avoid having multiple dconf paths for the same set element (with different template names or operations encoded into the dconf path segment), esp. when introducing write-back into dconf. Change-Id: Ieebad3b1024dd7607022abbfa963850b05c26d65
* Handle dconf_client_new failureStephan Bergmann2015-09-011-0/+4
| | | | Change-Id: Ib873ca03a2552dc0405236ed87040672ba359e5e
* dconf: fix check for matching templateStephan Bergmann2015-09-011-36/+36
| | | | Change-Id: I8319bf10310d55e2f29de8103d983e34a53f87df
* dconf: fix encoding of set element namesStephan Bergmann2015-09-011-10/+21
| | | | Change-Id: I6aba45a70a9ebee65be34af1036bb515fd2a22b7
* Rename stuff, in preparation of dconf::writeModificationsStephan Bergmann2015-09-014-12/+12
| | | | Change-Id: Icd472e91b222907e2cdcbdba1b78b33c44eff566
* Support modification write-back to other than registrymodifications.xcuStephan Bergmann2015-09-012-18/+48
| | | | | | | | | | | | | | | | | | | ...to eventually support writing to dconf (see TODO). Even when writing somewhere else, it may still be useful to read from the current "user:" location, so a new convention was introduced to CONFIGURATION_LAYERS types that support write-back: - A leading "!" indicates that the layer is indeed used for write-back (probably in addition to reading from it). For backwards compatibility (when users use own settings of CONFIGURATION_LAYERS, instead of depending on the value in the shipped fundamental ini-file), no prefix on the "user:" is now interpreted the same as a "!" prefix. - A leading "*" indicates that the layer is not used for write-back (but only for reading from it). Change-Id: I399cc7bfe927db50586834f9630c184aaa2153f2
* readdconflayer: avoid deref of null (removed) memberStephan Bergmann2015-09-011-63/+68
| | | | Change-Id: I3b2ce8ef79c4bc0dde8ba43f96ca4e97a71dd2cd
* loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann2015-08-312-6/+6
| | | | Change-Id: Id852428e7b7cde6eec6eeb9a2a9004d1f2e789b6
* Simplify hasModifications checkStephan Bergmann2015-08-273-12/+5
| | | | Change-Id: Idcbd9a20ab13d0717f8728673e2c55e87aa92be4
* Generalize CONFIGURATION_LAYERS "winreg:" notationStephan Bergmann2015-08-211-6/+9
| | | | | | | | | | | | | | | | | | ...after 097292feab4fc3c064983e1dd08ac4bebe1fe216 "Add HKEY_CURRENT_USER registry integration" added "winuserreg:". Even though changing from the exisiting "winreg:" to "winreg:LOCAL_MACHINE" should be compatible, as it only ends up in fundamental.ini included in the LO inst set, play it safe it keep treating "winreg" the same as "winreg:LOCAL_MACHINE". ("url" is a misnomer now in configmgr's Components ctor, and should eventually be renamed to something more accurate.) Change-Id: Ifbcf3284d904490891642599468470d03547f92a Reviewed-on: https://gerrit.libreoffice.org/17891 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* Support "finalized" in dconf layerStephan Bergmann2015-08-211-1/+18
| | | | Change-Id: Id33e21b01d8898ea9ff49bc7cc59b573580ab88d
* com::sun::star->css in configmgrNoel Grandin2015-07-2816-326/+299
| | | | | | | Change-Id: Ief642571ddccbf016fa1625b5859b4889a4a3e8e Reviewed-on: https://gerrit.libreoffice.org/17366 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:unusedmethodsNoel Grandin2015-07-243-1/+4
| | | | | | | Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#92764 - make configmgr write less noisy.Michael Meeks2015-07-153-58/+102
| | | | | | | | Re-factor the TempFile abstraction and add a trivial OStringBuffer to avoid emitting so many system calls - for writing small fragments of configuration XML. Change-Id: Ifbf5982ddb44845b2316087cafab4175a40e03cc