summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)AuthorFilesLines
2013-11-12Fix CompareIgnoreCaseToAscii -> matchIgnoreAsciiCaseAsciiL regressionStephan Bergmann1-1/+1
...introduced with 19ebc215d19ed9c7c5c6fdabf2f4acd5af02cbc4 "INTEGRATION: CWS ineturl1: #i34006# modify INetURLObject to use rtl::OUString and rtl::OUStringBuffer," where String::CompareIgnoreCaseToAscii returns StringCompare but rtl::OUString::matchIgnoreAsciiCaseAsciiL return sal_Bool. Change-Id: I009bd6f606850f4e971fda4a1b468e7b0d102685 Reviewed-on: https://gerrit.libreoffice.org/6635 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-08-27Resolves: fdo#67743 ensure user autocorr config dir existsCaolán McNamara1-0/+20
We try and copy the shared one to the user location the first time we create a customized user file. If the dir doesn't exist then that migration doesn't happen. The new autocorr file is then written, creating the dir, and any further operations will reattempt the skipped share copy, and this time succeed because the dir now exists. Which overwrites the previously written customized content. This is similar to fdo#65501 "ensure configured backup dir exists before using it", so reuse that code and move it into unotools. Change-Id: I38fa621b8d7295d70b09172a028569ea95404120 (cherry picked from commit 68dea1c1b61a99cdef556ba7d8ccfdad1be8a663) Reviewed-on: https://gerrit.libreoffice.org/5645 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks1-3/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48 (cherry picked from commit 03993b47c522dcc71f7cd73ee21df3de9650080d)
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl1-1/+2
Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 652ccbdf3111766fadc379a8cf4650b744e1e19c) i#108348: fix TimeZone -> Timezone in struct names (cherry picked from commit 604aae1fd240254fe851d93dc35b5408bd13296c) Signed-off-by: Michael Stahl <mstahl@redhat.com> Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu> Signed-off-by: Michael Meeks <michael.meeks@suse.com> Conflicts: forms/source/xforms/convert.cxx offapi/type_reference/offapi.rdb reportdesign/source/core/sdr/RptObject.cxx sc/source/filter/oox/unitconverter.cxx
2013-06-28fix crash when parsing empty stringLionel Elie Mamane1-1/+6
the parsing of the hours would succeed, but the parsing of the minutes would access past-the-end of the string. Probably same crash when parsing HH or HHMM formats. Change-Id: I248810e5c4c425186f33e573634883263caff312 Reviewed-on: https://gerrit.libreoffice.org/4591 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist3-16/+16
2013-05-13WaE: 'bFrac' may be used uninitialized in this functionTor Lillqvist1-1/+1
Actually it isn't (I think), but let's silence the compiler. Thanks to mjw for noticing and pointing out this warning on IRC. Change-Id: I78885a6dac0c3e27867215d99f6e01d429d086ca
2013-05-13fdo#46808, Convert util::PathSettings service to new styleNoel Grandin1-15/+5
Change-Id: I302be46b46518e1e872771e1c8a0647f7c330b30
2013-05-08coverity#1019431: use of freed memoryMarkus Mohrhard1-2/+4
2013-04-24Don't point to inc directories that don't exist any longerTor Lillqvist1-6/+0
Change-Id: Ia160f0ee3e9480c60056d38bf11a6b139b53424f
2013-04-24gbuild: drop uses of removed packagesDavid Tardon1-4/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-23execute move of global headersBjoern Michaelsen71-9403/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks5-106/+22
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane4-15/+459
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-15fdo#60724 successfull -> successfulThomas Arnhold1-2/+2
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-15fdo#60724 correct spellingThomas Arnhold4-4/+4
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15fdo#60724 correct spellingThomas Arnhold2-2/+2
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15fdo#60724 informations -> informationThomas Arnhold14-23/+23
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-10SvtPathOptions with LanguageTagEike Rathke2-13/+9
Change-Id: I33f43c6d0249a6681d451a4be8c5548da4987f9c
2013-04-10use language tagsEike Rathke1-32/+11
Change-Id: I0e0e6f05f69a173d230a32bc1c39a1bf18fc052f
2013-04-10janitorial: spelling in commentLionel Elie Mamane1-1/+1
Change-Id: I0c232a60d4ab55fae5b78712d9acc4bac93f90c3
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák2-2/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák74-932/+907
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 Rathke16-20/+20
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-05unotools: remove some unused itemsThomas Arnhold9-724/+11
Change-Id: I95bcac6a3ff8cf4644c9d1596c75cac2d9cd94fe Reviewed-on: https://gerrit.libreoffice.org/3191 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz> Notes: API CHANGE.
2013-04-05Remove SvtInternalOptionsThomas Arnhold6-504/+0
* only Get/SetCurrentTempURL were used, but only for compatibility reasons, to remove old temporary directories (before 2001). Those should be gone today. * MailUIEnabled was false in the xcu file. * SID_MAIL_SENDDOC* are handled some lines further. Change-Id: I482719b0de9df0a77c2fef0bf25ae1fb68926375 Reviewed-on: https://gerrit.libreoffice.org/3180 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz> Notes: API CHANGE.
2013-04-02drop prefix from ::cssThomas Arnhold1-67/+67
as css is already ::com::sun::star Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
2013-04-01remove boilerplate commentsThomas Arnhold1-2/+0
Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
2013-03-30remove local css definitionsThomas Arnhold1-3/+0
follow-up of 66a175834c39ccde9475eac3adb72a843110d01f Change-Id: I1c495041ccc4db4dd9554d49b6324e989fa46c60
2013-03-29FIXME-BCP47Eike Rathke1-0/+1
Change-Id: Id328608bcab49513d044c5029f87c5d1c21cedd2
2013-03-27-Werror=unused-macrosStephan Bergmann1-1/+0
Change-Id: I2fce1d0c7136840843b78ae301e8c4147d504272
2013-03-26Replace String with OUString in RecodeStringChr. Rossmanith2-7/+12
Change-Id: I987f738d1cd7d640a253f3cd31864290b6d763bf Reviewed-on: https://gerrit.libreoffice.org/2919 Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-25Fix spelling errors and typos: 'unkown' change to 'unknown'vincent4-4/+4
Change-Id: Ia3ff77d2b99c9ef6c4c9b510bb30f349592c0b94 Reviewed-on: https://gerrit.libreoffice.org/3030 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-20Replace String with OUString (unotools)Chr. Rossmanith2-11/+11
Change-Id: I9a0677cb36805d0a27514824c937901f73fee1c8 Reviewed-on: https://gerrit.libreoffice.org/2864 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-03-20simplify OUString assignmentsChr. Rossmanith1-36/+36
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb Reviewed-on: https://gerrit.libreoffice.org/2863 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-03-19compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)Stephan Bergmann1-2/+2
...broken with 407b51db1831bb2cf21def88241323e35c612005 "Remove RTL_CONSTASCII_STRINGPARAM (unotools)." Change-Id: Id810c157a6e10380d28e4d6e85f908dc79cf0057
2013-03-19DBG_ASSERT -> SAL_WARNStephan Bergmann1-2/+4
Change-Id: I29a13ac9631027d7c527c3b395d4a887c290acc7
2013-03-19Simply obtain theMacroExpander on demandStephan Bergmann1-24/+7
Change-Id: I919c8f5c26d1c879dd77e691babaa4eb7f608c35
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-3/+0
2013-03-12Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10Chr. Rossmanith1-5/+3
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4 Reviewed-on: https://gerrit.libreoffice.org/2676 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12Remove RTL_CONSTASCII_STRINGPARAM (unotools)Chr. Rossmanith3-37/+26
Change-Id: Id6f9a357431a636c5982964452a0f067e884da96
2013-03-12tempfile: Creating tempfiles in a given folder is not usedThomas Arnhold1-1/+0
It's always the case, that the default temp folder is used. aName and aRet are always empty, pParent is no longer used. So the pParent argument makes no sense anymore. bDirectory makes no sense without pParent and is apparently unused (always sal_False by default). The include of tools/tempfile.hxx in unotools/tempfile.cxx in not necessary. Conflicts: tools/source/fsys/tempfile.cxx Change-Id: I9c53b263a640e53140a8ae8795181b1c5e43f26d
2013-03-12Keep concatenating adjacent string literals via juxtaposition instead of +Stephan Bergmann1-5/+2
Change-Id: I098a8d657ed5ac1976013e1ee370ef76ed2242db
2013-03-11unotools: use return value of copy()Thomas Arnhold1-2/+2
Change-Id: I8eaa40197e2ea25d52af920e03b0fd0e32e94847
2013-03-11fdo#38838: Converting String/UniString to OUStringelixir3-60/+75
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-11fdo#47011 autosave featureKrisztian Pinter1-15/+1
removed unnecessary prop. name "Document/UserAutoSave" from saveopt.cxx fixed autosave feature setting "losing its value" set autosave feature default value to False Change-Id: I473154b21bab53bf595a5a59e87dc16e472dcbf9 Reviewed-on: https://gerrit.libreoffice.org/2663 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-11Remove RTL_CONSTASCII_STRINGPARAM (unotools)Chr. Rossmanith22-305/+282
Change-Id: I2911e50ddcd007d80498b9d65efd14368ac3baca
2013-03-10Removed RTL_CONSTASCII_USTRINGPARAM in unotoolsChr. Rossmanith4-26/+26
Change-Id: I516ea0e5457e9dc1cc9ac42f86fa1a5b4641078a
2013-03-08make use of startsWith()Thomas Arnhold1-1/+1
Change-Id: Ie70097de550ddd1cddc6714f8f86f9723cb36679 Reviewed-on: https://gerrit.libreoffice.org/2599 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-08simplify compareTo (now correct)Thomas Arnhold1-1/+1
Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>