summaryrefslogtreecommitdiff
path: root/configmgr/source
AgeCommit message (Collapse)Author
2015-07-28com::sun::star->css in configmgrNoel Grandin
Change-Id: Ief642571ddccbf016fa1625b5859b4889a4a3e8e Reviewed-on: https://gerrit.libreoffice.org/17366 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-24loplugin:unusedmethodsNoel Grandin
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-15tdf#92764 - make configmgr write less noisy.Michael Meeks
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
2015-07-15loplugin:unusedmethods configmgrNoel Grandin
Change-Id: Ie0338860717630633752a39814057c736d1faee8 Reviewed-on: https://gerrit.libreoffice.org/17059 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-14Add HKEY_CURRENT_USER registry integration.Michael Meeks
It seems rather odd that we dump this to a file and parse again to me. Change-Id: Ia32ba9ff3e7878d40032bd7d10fba2c143d11757 Reviewed-on: https://gerrit.libreoffice.org/17033 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2015-07-13tdf#92639: Slashes are allowed in set member names, of courseStephan Bergmann
Change-Id: I30944fe9611e83566c891a7d1461ad02979daddd
2015-07-13tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
with the variadic variants, in configmgr. Change-Id: I0cf82ab487ed879aa385d6065e908e347c0778e8 Reviewed-on: https://gerrit.libreoffice.org/16964 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-08configmgr: support reading from a dconf layer (WIP)Stephan Bergmann
Work in progress to allow integration of LO with <https://wiki.gnome.org/Projects/FleetCommander>. During configuration, dconf support is implicitly enabled when available on the host (which is presumably only available on Linux). It is explicitly disabled for TDF Linux builds for now, though, to avoid accidental dependencies of the distributed installation sets on system dconf libraries. A dconf layer is represented in the CONFIGURATION_LAYERS bootstrap variable with type "dconf" and an empty URL. See the comment at the top of configmgr/source/readdconflayer.cxx for the encoding of component-data in dconf. All of this is still subject to change. Change-Id: I2d08d81c8ea43ba4a99040a8882ae75b91bcfdb9 Reviewed-on: https://gerrit.libreoffice.org/16848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-07-07Validate names of elements added via the APIStephan Bergmann
Change-Id: I052f8ca6a8788665acb1bf87456f7cc67d64c365
2015-07-02Minor clean upStephan Bergmann
Change-Id: I7be5bf1319ac927ffb746d47f9e0d596284e2283
2015-07-01parseFileLeniently is always called with data_ as argumentStephan Bergmann
Change-Id: I1c4f5e468062ced7f76b877939f96435b00d05e3
2015-06-08cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Ie2ae923ad4c1a66e779711de6ff05328ef144dac
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
2015-04-01Add isReadOnly() support to simplified configuration accessStephan Bergmann
[API CHANGE]: extends the css.configuration.XReadWriteAccess in an incompatible way, but that is unpublished, has been commented as "still unpublished and unstable," and was specifically introduced for internal use by the simplified configuration access, so should not affect 3rd party code. Change-Id: I99ce045f5bd8c598e689d46fb0d3626dfaa6d0a0
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-02-16incomplete type error under some compilersCaolán McNamara
Change-Id: I87740d4d035bc4e430d566f4672bfd338511d3a8
2015-02-16boost::noncopyable->'= delete'Caolán McNamara
Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-10cppcheck: assertWithSideEffectCaolán McNamara
Change-Id: I6601e857394d7b460a105e851529350a62d1a2a6
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage
Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2014-12-16configmgr: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I7345234957aab62e884c0e884ac0b3b8a21e9cc5
2014-12-05Revert "Log parsing time of each xcd file"Stephan Bergmann
This reverts commit ca85c87bf66d15e689cb09daf5dab5c4467046bc, c57fb9ea459f08c33a4b8c129938411a59a19b77 "Use xmlreader::XmlReader::getUrl" was meant for real.
2014-12-04Log parsing time of each xcd fileTor Lillqvist
Change-Id: I290e2c84b17b9b5063139c6027b72f6cd3a78a99
2014-12-04SAL_INFO how long parseXcsXcuLayer() and parseResLayer() tookTor Lillqvist
Change-Id: I1e71b8a6348301cd5b3fed0ae8b3346ae3e07d8e
2014-11-18cppu: clean up public headers with include-what-you-useMichael Stahl
Unfortunately iwyu gets quite confused by the weird cyclic dependencies between various foo.h/foo.hxx and cppumaker generated headers, so it's not obvious if any improvement here is realistic... Change-Id: I0bc66f98b146712e28cabc18d56c11c08418c721
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-24Use xmlreader::XmlReader::getUrlStephan Bergmann
Change-Id: Idd59fd1324615e575ed812e0c2a7cdfd84a9aeb2
2014-10-23Log parsing time of each xcd fileTor Lillqvist
Change-Id: I290e2c84b17b9b5063139c6027b72f6cd3a78a99
2014-10-20Revert "fdo#75757: remove inheritance to std::map"Stephan Bergmann
This reverts commit a2deca9d755710bd543fd0caaea0352ac746396d: config_map had been introduced on purpose with bfb978334cea775b8ae5c40ceea050ea0660d80a "configmgr: faster / simpler compare for keys." Change-Id: I3ae0edc4d23977c6537bd2f462f90a702266de6d
2014-10-20fdo#75757: remove inheritance to std::mapDaniel Sikeler
Change-Id: I189d7a1d68eb9022a32e882d68ce8c8dc567c1fd Reviewed-on: https://gerrit.libreoffice.org/12042 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-10-02coverity#707682 Uninitialized scalar fieldCaolán McNamara
Change-Id: I1230c42c76aee4e9a2a149a27ef11e163753865a
2014-07-08configmgr: fix node cache clearing.Michael Meeks
Change-Id: Idd6c227b8f50446c1d3c48385de6c843faf47466
2014-07-08WaE: Unreachable codeTor Lillqvist
Not sure if the intent is that clearCache() should be called, but the calls have just accidentally been placed after the return statements, or whether the code works correctly and as intended as it is now, i.e. with the unreachable calls to clearCache(). Warning emitted by VS 2013, why don't other compilers warn? Perhaps these functions are never called? Change-Id: I16b0bc1b836753ef5579dadba211cbce4f50cbc3
2014-07-02Make configmgr loplugin:salbool-cleanStephan Bergmann
Change-Id: Ib1f33387c50bcd853140eb2fc46995d23d7f367b
2014-06-30configmgr: faster / simpler compare for keys.Michael Meeks
A surprising amount of time is/was spent comparing keys in the std::map red/black tree traversing nodes. Since we don't need the data truly sorted, instead sort in length buckets. Kills 90k rtl_ustring_compare_withLength calls on startup, around 0.9% of headless start. Change-Id: Ib23aff151ad50d56bbf2ba3e28882cc81898d9ec
2014-06-28configmgr: accelerate getPropertyValue.Michael Meeks
Change-Id: Ie0460c8db6b1e7fcc9bab1f5e9ae1fbd00987994
2014-06-28configmgr: accelerate simple config key fetches.Michael Meeks
Avoid heap allocating UNO object wrappers for the underlying Node structures only to convert to Any and immediately free them agian when we can. Change-Id: Iae4612e9602f872f5d8cca2e516df594c9f1118c
2014-06-28configmgr: implement a single item cache for node lookup.Michael Meeks
Saves 13.5m cycles on a headless start, 1.3%. Change-Id: I73f0dd8a523f84c765a217ee95aea9bcc3db1b5d
2014-06-28configmgr: re-factor findNode and clone into NodeMap.Michael Meeks
Change-Id: Ib170b3cec17402e38bf5555e21f83f44d70bb574
2014-06-28configmgr: hide NodeMap implementation.Michael Meeks
Change-Id: I57c81b5ec7a6541a825e42f9b68e7c5fa98f316f
2014-06-28configmgr: avoid constructing duplicating and freeing Any'sMichael Meeks
Accelerates headless startup by 6.5m cycles or so, 0.6% or so but something. Change-Id: I9edca3d0c1c81d865e8369fee5cf193da7adb97c
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-05various: remove SAL_THROW macroNoel Grandin
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-05-28fix-includes.pl: configmgrThomas Arnhold
Change-Id: Ica1dc0c8003203ba0ea65a668ea3d86f341ad05d
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-09There is no css::uno::Sequence<bool>Stephan Bergmann
This partially reverts 78b9537b6aca0f998f939988e6e1a56528d28baf "various: sal_Bool->bool." Change-Id: I732b2fb2cca3e66b396a35645f12ae96a40163d5
2014-05-08various: sal_Bool->boolNoel Grandin
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9