3017 Commits

Author SHA1 Message Date
Stephan Bergmann
57af2ee947 Allow starts-/endsWith* to also return the rest of the matched string
...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-15 22:52:26 +02:00
Stephan Bergmann
bb20def9f6 Simplify some matchAsciiL -> match
Change-Id: Ib0cac79b86ed60b4df1fc90db15842cc99abc1e9
2013-10-15 22:52:26 +02:00
Janos Farago
a434091ba3 winreg backend: add support for oor:op in config nodes
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-10-02 20:15:03 +00:00
Stephan Bergmann
53e5fb9dc1 fdo#69028 Set PropertyAttribute::READONLY for finalized configmgr props
...thanks to Andras for pointing me to the problem

Change-Id: I98786e8fe3159426b7e4c8b5345be500be2fc87b
2013-09-25 22:38:58 +02:00
Michael Meeks
ed1eed600b configmgr: more makefile cleanup.
Change-Id: I672077a2096cc51e7a3668f5873a91299fd00ca1
2013-09-10 17:50:19 +01:00
Michael Meeks
e9b808bd2d configmgr: cleanup unit test pieces.
Change-Id: I3d849a1676c638d431a15672c5a7253b70f4e610
2013-09-10 16:56:36 +01:00
Jelle van der Waa
e8c26959de fdo#46723 enable configmgr unit tests
Change-Id: Id2a10374d207fc079093cdb9a78ac30171251e46
2013-09-10 16:42:12 +01:00
Stephan Bergmann
b1e464999e Some clean up
...post 5a02076358a547bae8a9b596d9722a7cd2d46c34 "Windows registry configuration
backend."

Change-Id: I4d27c17d4f26254bce175910a76f0076639581e8
2013-09-10 13:03:04 +02:00
Janos Farago
5a02076358 Windows registry configuration backend
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-09-10 11:16:39 +02:00
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
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-21 15:10:35 +02:00
Tor Lillqvist
c6a7300974 Use subfolder names from <config_folders.h>
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-08-18 21:11:16 +03:00
Stephan Bergmann
3655cc9fe6 Style and grace
Change-Id: I90854a061d3b51537669365f7a28a0fabe3dac2b
2013-07-24 14:50:21 +02:00
Stephan Bergmann
2270f32c6b Clean up redundant explicit OUString(...) ctors
Change-Id: Ieb5d4a1d669e0472ec08704c618a9d9c1d30b77f
2013-07-23 13:09:55 +02:00
Stephan Bergmann
e667bcdf98 These SAL_INFOs do not make much sense any more
...now that the original RTL_LOGFILE_TRACEs got replaced.

Change-Id: I0997d6bbb90a22678fdc6398e7786ac36b9d73f4
2013-07-23 12:08:16 +02:00
Jelle van der Waa
5d95193f85 fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
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-23 08:27:29 +00:00
Eike Rathke
358d1a9948 use static LanguageTag::convertTo...() for standalone conversions
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-07-13 11:55:16 +02:00
Stephan Bergmann
ebc635b95c Turn redundant member direct-initializations into value-initializations
...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-20 10:07:21 +02:00
David Tardon
af9e58d6de WaE: initialization order
Change-Id: I5ff293b2e06fe5891487616fcfba510e46acebfd
2013-06-18 06:07:16 +02:00
Julien Nabet
032d5126e4 cppcheck: fix some uninitMemberVar in configmgr part
Change-Id: I9b18f033c46e16cf75cc513d00712c40bfddda14
2013-06-17 22:49:51 +02:00
Jelle van der Waa
97460c421a fdo#43460 configmgr: use isEmpty()
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-17 19:33:01 +00:00
Stephan Bergmann
3af0114a29 Introduce O[U]String::toUInt32
...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-06-13 17:08:36 +02:00
Stephan Bergmann
df18d5878c Some string literal clean up
Change-Id: I108882af13fa97fa094547ec4efb468f988f337d
2013-05-16 09:25:53 +02:00
Herbert Dürr
8d9998f53a Related: #i122208# avoid default assignment of recursive STL containers
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-05-15 12:48:58 +01:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Matúš Kukan
eeaa2ecd1e remove unused component_canUnload functions
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-19 16:52:03 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-07 14:23:11 +02:00
Eike Rathke
876c619b94 new module i18nlangtag
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-05 19:10:48 +02:00
Eike Rathke
8ef9e38aa8 use LanguageTag
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-04-05 19:01:52 +02:00
Eike Rathke
7d33da474c unused comphelper/locale.hxx
Change-Id: I54958974b01d753dcb2cb797dbb028aa51a7a765
2013-03-28 01:39:08 +01:00
Eike Rathke
25010515d9 use LanguageTag instead of comphelper::Locale
Change-Id: I6e5e85e2c81030f9b599e3ade416ba25f7be4e5e
2013-03-28 01:39:08 +01:00
Eike Rathke
4f79c03ba8 use LanguageTag instead of comphelper::Locale
Change-Id: I98cac783ff1db94d1d7135dd0db8ee0d809b3457
2013-03-28 01:39:07 +01:00
Stephan Bergmann
4c0c23af21 Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-19 11:32:20 +01:00
Thomas Arnhold
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
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-19 09:00:26 +00:00
Michael Meeks
79b0046ba0 remove legacy build.pl prj/build.lst files. 2013-03-14 17:05:51 +00:00
Kenneth Beck
21e1e859a7 fdo#60724 change spelling error REMOVEABLE -> REMOVABLE
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>
2013-03-06 10:39:30 +01:00
Michael Stahl
b768611724 remove all d.lst
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-28 18:40:06 +01:00
Andras Timar
83a65d8b5c remove obsolete no_localization files
Change-Id: Ib6e570a9f409a4700b73da133c57628e9c10eeb1
2013-02-06 15:13:05 +01:00
Michael Stahl
a53586f4ef gbuild: do not copy boost headers around
- do not use gb_UnpackedTarball_copy_header_files for boost
- adapt the optimization in concat-deps.c for new path
- use boost_headers in all LinkTargets that require it
- add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus

Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26 22:20:06 +01:00
Jean-Noël Rouvignac
63bcb139b9 Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-21 15:04:17 +00:00
Cédric Bosdonnat
f011e84a75 Partially reverted 786f15e605867668d88ab23d66cabb18f18bdcf9
This dialog is still of some use with some Writer Wizards and templates.
Re-added the dialog, but moved the menu entry to Tools menu in Writer.
The menu entry has not been added back in the other applications.

Conflicts:
	sfx2/sdi/appslots.sdi
	sfx2/source/appl/appserv.cxx
	sfx2/source/doc/docvor.cxx
	sfx2/source/doc/docvor.hrc
	sfx2/source/doc/docvor.src

Change-Id: I1388d955752e99ab6d39dfc81bb41a97b33bdfcd
2012-12-20 18:02:53 +01:00
Cédric Bosdonnat
29c7c90fd2 Removed File > Templates > Address Book Source... menu entry and its code
Conflicts:
	basctl/uiconfig/basicide/menubar/menubar.xml
	extensions/source/bibliography/uiconfig/sbibliography/menubar/menubar.xml
	framework/uiconfig/startmodule/menubar/menubar.xml
	sc/uiconfig/scalc/menubar/menubar.xml
	sd/uiconfig/sdraw/menubar/menubar.xml
	sd/uiconfig/simpress/menubar/menubar.xml
	sfx2/sdi/appslots.sdi
	sfx2/source/appl/appserv.cxx
	sfx2/source/doc/docvor.cxx
	sfx2/source/doc/docvor.hrc
	sfx2/source/doc/docvor.src
	svtools/source/dialogs/addresstemplate.cxx
	sw/uiconfig/sglobal/menubar/menubar.xml
	sw/uiconfig/sweb/menubar/menubar.xml
	sw/uiconfig/swform/menubar/menubar.xml
	sw/uiconfig/swreport/menubar/menubar.xml
	sw/uiconfig/swriter/menubar/menubar.xml
	sw/uiconfig/swxform/menubar/menubar.xml

Change-Id: Iaec660c2d8da109bd644f5c88213fdb0c51a9c0f
2012-12-20 18:02:52 +01:00
Radu Ioan
3e64874e7c rtl:: prefix removal from configmgr
- removed rtl:: prefix
- removed RTL_CONSTASCII_USTRINGPARAM
- corrected some misspells

Change-Id: I88bb0beec718a7fe38c61220aa61401419f23b42
Reviewed-on: https://gerrit.libreoffice.org/1291
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2012-12-11 12:08:38 +00:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
Stephan Bergmann
053108588d Support optional dependencies among .xcd files
...that are effectively ignored if the depended-on file does not exist.  This
will be needed by a subsequent commit to make PDF Import optionally installable.

Change-Id: I2283be3ce75f52811a371f41aa8784f507425ee3
2012-11-29 11:34:09 +01:00
Stephan Bergmann
8246bdb500 fdo#55138: Do not double-expand bootstrap variables
For some reason that escapes me now, the old code double-expanded URLs in
CONFIGURATION_LAYERS and in extension layer's configmgr.ini SCHEMA/DATA.  That
produced wrong results when the pathnames represented by those URLs contain
any "$" characters, as apparently routinely happens on Windows with roaming
profiles.

Change-Id: Iff149e7d8736cbcda579376cdc89e24cf99ccc97
2012-11-06 16:20:55 +01:00
Stephan Bergmann
c936fcb0f3 Some more configuration::theDefaultProvider simplifications
Change-Id: I91ded7801f4959f2dac7b5b3e4c8d1f3929f4ed9
2012-10-31 18:27:36 +01:00
Michael Stahl
5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
Michael Stahl
b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
Michael Stahl
2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00