summaryrefslogtreecommitdiff
path: root/configmgr
AgeCommit message (Collapse)AuthorFilesLines
2013-12-16Allow setting environment value directly in .component filesStephan Bergmann1-2/+2
...for internal loader="com.sun.star.loader.SharedLibrary" components, instead of exported component_getImplementationEnvironmen (or implicit CPPU_CURRENT_LANGUAGE_BINDING_NAME). Adapted a few .component files as proof- of-concept, more to follow. Change-Id: I82332e0a48e6fc1da245990bb72265fe6e58447e
2013-12-16change config example in commentAndras Timar1-3/+3
because Expert Config is no longer a leaf in option page tree, it became a standalone window. Change-Id: Ib82b5eb958073d1afbd9ad2b8493e2670dee591b
2013-12-12simplify - use OUString::startsWith where possibleNoel Grandin1-1/+1
Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-09Get rid of redundant configmgr::XcuParser::State::lockedStephan Bergmann2-92/+88
Change-Id: If7019fc334c0f11fae464b65c135d01acfb1a46b
2013-12-09fdo#69027 check for state_.top().lockedAndras Timar1-1/+1
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: I wonder why I originally introduced State::locked in addition to State:ignored in the first place, but can't find a good reason for that now. So the patch looks ok, though it could be further simplified to completely get rid of State::locked. Will do that in a follow-up commit. Change-Id: If07a07b21effbf42918408a0b60b2d18bdc8665c
2013-12-06Do not create paths starting "//" when root is just "/"Stephan Bergmann1-3/+4
Change-Id: If0b413a4fdd93465074548c7ea5451288c1d12aa
2013-11-22remove unnecessary RTL_CONSTASCII_STRINGPARAMNoel Grandin1-8/+4
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-21Some more adaptions to cppu::supportsServiceStephan Bergmann4-7/+11
Change-Id: I0fa482b3303f339afabf5ed8f3e432b56c6590aa
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-32/+16
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin4-12/+12
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-18fdo#60698: Move fileaccess module to ucbMarcos Paulo de Souza1-1/+0
Change-Id: I4c688a4aeedcae56ed6404574bd1bb392d4190cb Reviewed-on: https://gerrit.libreoffice.org/6311 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-17The getSupportedServiceNames implementations will already take careStephan Bergmann1-4/+1
Change-Id: I0c7ae8e0393f069259b943e04368e874abdf8386
2013-10-17fdo#54938: Adapt svtools and comphelper module ...Marcos Paulo de Souza1-7/+2
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-15Allow starts-/endsWith* to also return the rest of the matched stringStephan Bergmann2-17/+9
...as there are many cases where the code later wants to obtain this part, and esp. for the string literal variants it is awkward to calculate the length of the literal again if this is coded with a following copy() call. Adapt some code to use this new feature. (Strictly speaking, the @since tags for the---backwards-compatibly---modified functions are no longer accurate of course. Also, clean up some sal_Bool and SAL_THROWS(()) that are unnecesssary cargo-cult here, and where the clean-up should have no practical compatibility consequences.) Change-Id: I43e5c578c8c4b44cb47fd08f170b5c69322ad641
2013-10-15Simplify some matchAsciiL -> matchStephan Bergmann1-8/+3
Change-Id: Ib0cac79b86ed60b4df1fc90db15842cc99abc1e9
2013-10-02winreg backend: add support for oor:op in config nodesJanos Farago1-6/+67
Change-Id: I9cc4472b37d24e426a67661806805c11b521dfb1 Reviewed-on: https://gerrit.libreoffice.org/6074 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-09-25fdo#69028 Set PropertyAttribute::READONLY for finalized configmgr propsStephan Bergmann1-3/+4
...thanks to Andras for pointing me to the problem Change-Id: I98786e8fe3159426b7e4c8b5345be500be2fc87b
2013-09-10configmgr: more makefile cleanup.Michael Meeks1-3/+4
Change-Id: I672077a2096cc51e7a3668f5873a91299fd00ca1
2013-09-10configmgr: cleanup unit test pieces.Michael Meeks2-40/+39
Change-Id: I3d849a1676c638d431a15672c5a7253b70f4e610
2013-09-10fdo#46723 enable configmgr unit testsJelle van der Waa3-5/+63
Change-Id: Id2a10374d207fc079093cdb9a78ac30171251e46
2013-09-10Some clean upStephan Bergmann2-145/+152
...post 5a02076358a547bae8a9b596d9722a7cd2d46c34 "Windows registry configuration backend." Change-Id: I4d27c17d4f26254bce175910a76f0076639581e8
2013-09-10Windows registry configuration backendJanos Farago6-7/+226
The goal is to manage LibreOffice configuration centrally in the enterprise. In Windows Server environment using Group Policies is a common solution for configuration management. Therefore it is required that LibreOffice can read configuration data from Windows registry, too. Windows registry is another configuration layer on the top of normal xml based configuration. For example the following registry setting: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\LibreOffice\org.openoffice.UserProfile\Data\o] "Value"="Example Corp." "Final"=dword:00000001 becomes the following in configuration: <item oor:path="/org.openoffice.UserProfile/Data"> <prop oor:name="o" oor:finalized="true"> <value>Example Corp.</value> </prop> </item> Change-Id: I2cdd83fc93922bf2806417bfd1b83f85cc926d4c Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-3/+3
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist1-1/+3
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-07-24Style and graceStephan Bergmann1-1/+1
Change-Id: I90854a061d3b51537669365f7a28a0fabe3dac2b
2013-07-23Clean up redundant explicit OUString(...) ctorsStephan Bergmann16-351/+204
Change-Id: Ieb5d4a1d669e0472ec08704c618a9d9c1d30b77f
2013-07-23These SAL_INFOs do not make much sense any moreStephan Bergmann1-3/+0
...now that the original RTL_LOGFILE_TRACEs got replaced. Change-Id: I0997d6bbb90a22678fdc6398e7786ac36b9d73f4
2013-07-23fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa1-2/+2
Change-Id: I9c2405f92aea75756a0fbac7844ff16319210be3 Reviewed-on: https://gerrit.libreoffice.org/5014 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke1-2/+2
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-06-20Turn redundant member direct-initializations into value-initializationsStephan Bergmann3-3/+3
...the direct-initializations were introduced with 032d5126e41562917b91b8f4826b0be628169968 "cppcheck: fix some uninitMemberVar in configmgr part," presumably to avoid false positives from static analysis tools. But the initializations are redundant, as the invariants of the affected classes imply that the members have meaningful values at their points of use. And the direct-initializations with arbitrary values make it harder for a maintainer to understand the relevant invariants, namely to ensure the members must have been assigned /meaningful/ values by the time they are used. Give a (subtle) clue by making those into value-initializations. Change-Id: Iadb25fa08b6d6b12d5bf8a8f04271270b6a7f7cb
2013-06-18WaE: initialization orderDavid Tardon1-1/+1
Change-Id: I5ff293b2e06fe5891487616fcfba510e46acebfd
2013-06-17cppcheck: fix some uninitMemberVar in configmgr partJulien Nabet3-3/+3
Change-Id: I9b18f033c46e16cf75cc513d00712c40bfddda14
2013-06-17fdo#43460 configmgr: use isEmpty()Jelle van der Waa2-6/+6
Change-Id: Ifab7cef3e883bc10632ac280ca382b2c68bc79e1 Reviewed-on: https://gerrit.libreoffice.org/4317 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann1-9/+12
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-05-16Some string literal clean upStephan Bergmann5-236/+146
Change-Id: I108882af13fa97fa094547ec4efb468f988f337d
2013-05-15Related: #i122208# avoid default assignment of recursive STL containersHerbert Dürr2-4/+5
support for recursive STL containers is not required by the standard. Boost TR1 containers allow them explicitly though but for some compiler/stl combinations there are constness issues that prevent the default assignment operator to work. Adding a small helper function solves this problem in a clean way. (cherry picked from commit 58d204292c12eb5237106d223251d8855aca3ca2) Conflicts: configmgr/source/partial.hxx Change-Id: I301765e47db12f3b158d4525e896e090f4b81bbb
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-27/+7
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks8-190/+32
2013-04-19remove unused component_canUnload functionsMatúš Kukan2-2/+0
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák6-117/+117
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-04-05new module i18nlangtagEike Rathke2-2/+2
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05use LanguageTagEike Rathke1-3/+1
This creates a circular dependency between modules i18npool and comphelper, but not between libraries. To be resolved by moving languagetag, isolang and mslangid stuff to a separate module. Change-Id: I669aa66010800632c5637b42c6136a7ca14e7e68
2013-03-28unused comphelper/locale.hxxEike Rathke1-1/+0
Change-Id: I54958974b01d753dcb2cb797dbb028aa51a7a765
2013-03-28use LanguageTag instead of comphelper::LocaleEike Rathke1-2/+1
Change-Id: I6e5e85e2c81030f9b599e3ade416ba25f7be4e5e
2013-03-28use LanguageTag instead of comphelper::LocaleEike Rathke2-12/+5
Change-Id: I98cac783ff1db94d1d7135dd0db8ee0d809b3457
2013-03-19Simplify equalsIgnoreAsciiCaseAscii[L] callsStephan Bergmann1-12/+4
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold3-65/+50
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-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-4/+0
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck1-1/+1
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>