summaryrefslogtreecommitdiffstats
path: root/unotools/source
Commit message (Collapse)AuthorAgeFilesLines
* OSL_FAIL -> SAL_WARNStephan Bergmann2013-07-231-17/+5
| | | | Change-Id: If0c4dce547184ca48f221793daf33e4592912cb2
* i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl2013-07-151-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 Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18 Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* use static LanguageTag::convertTo...() for standalone conversionsEike Rathke2013-07-133-9/+9
| | | | | | | | 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
* DefaultFontConfiguration and FontSubstConfiguration with LanguageTagEike Rathke2013-07-121-31/+37
| | | | Change-Id: I6c111392537d114358d0574f2dbdf40f684b5103
* eliminated some back and forth conversion between bcp47 and LocaleEike Rathke2013-07-121-19/+17
| | | | Change-Id: If97a4b695262a99979dbab1bcec75fe694c4de80
* use LanguageTag and getFallbackStrings()Eike Rathke2013-07-111-16/+9
| | | | Change-Id: I398fb1cd3a2f456562d879b417ec964f21f67464
* use LanguageTag::getFallbackStrings()Eike Rathke2013-07-111-15/+22
| | | | Change-Id: Id9403337375077931e976358c4410ad18ac0e092
* use LanguageTag to convertEike Rathke2013-07-111-22/+2
| | | | Change-Id: I11007c31e5b4eea39ce27876de8a65fbf563a5e9
* fix StrictStringSort (and STL assertion in starmath test)Michael Stahl2013-07-021-1/+1
| | | | | | | | OUString::compareTo may return not just -1 but any negative number. (regression from 6a08067902ddc0ec61a7c7b4b0035b303f643a50) Change-Id: I93027726b95e8d398292e1c2dee7795b1f7b7b8b
* OUString convertion for unotoolsNorbert Thiebaud2013-07-0216-621/+578
| | | | | | | | Change-Id: Ifae7f344e3827875e32afa3cda23c771f5735707 Reviewed-on: https://gerrit.libreoffice.org/4659 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Clean String and sal_Bool in toolsNorbert Thiebaud2013-06-302-2/+2
| | | | | | | Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* remove OUString wrap for string literalsThomas Arnhold2013-06-294-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* datetime.cxx: remove duplicative unused operatorsMichael Stahl2013-06-281-29/+0
| | | | Change-Id: I73aae52cc482f87fb27c35c5c0d9f7b378760906
* fix crash when parsing empty stringLionel Elie Mamane2013-06-271-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
* Fix fdo#52204 add new feature ignore diacritics in search for CTLabdulmajeed ahmed2013-06-211-3/+16
| | | | Change-Id: Ie9044a35003217545bacea214ef59047bff3b8b1
* -Werror,-Wdeprecated-registerStephan Bergmann2013-06-201-4/+4
| | | | Change-Id: Idacccba79c1c2973e5f20804e628f6043988888d
* Some String -> OUStringStephan Bergmann2013-06-051-7/+5
| | | | | | | | ...to get rid of having to additionally link some libs against tl from 27c6434fccfec5fb4184c1efa2057595c8716fad "fdo#46808, Replace usage of SpecialConfigManager" again. Change-Id: Ica161a4f0da320858b6a3901a5a6907737c779f4
* use uno::Reference#clear() method...Noel Grandin2013-06-051-1/+1
| | | | | | ...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
* remove unused componentcontext.hxx includesNoel Grandin2013-06-052-2/+0
| | | | Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
* Make use of IsStarSymbol()Thomas Arnhold2013-05-302-1/+9
| | | | | | | Change-Id: I7a2e3a6f11bbaaaff50e8163e4ce3e2583b1d03c Reviewed-on: https://gerrit.libreoffice.org/4077 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* be case-insensitive for open/starsymbol comparisonThomas Arnhold2013-05-272-0/+2
| | | | | | | Change-Id: I7a342c809a723f5f9c03271c6145d9c367cea6de Reviewed-on: https://gerrit.libreoffice.org/4015 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* The MT Extra font mapping is incompleteSean Young2013-05-271-43/+43
| | | | | | | | | | | | | Many points are missing. Replace entire table with the mapping provided by the original creator. Note that point 0xe7 ("Apple Logo") is not in unicode so no mapping is provided for that. http://www.dessci.com/en/support/mathtype/tech/encodings/mtextra.htm Change-Id: I05acd36772ae6432614ff3b284e43b86049bed66 Reviewed-on: https://gerrit.libreoffice.org/4036 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Use the new type-checking Reference constructor to reduce code noiseNoel Grandin2013-05-221-1/+1
| | | | | | | | | | Also create a Clang compiler plugin to detect such cases. Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752 Reviewed-on: https://gerrit.libreoffice.org/4001 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Spelling "separate" (etc) correctly is hardTor Lillqvist2013-05-153-16/+16
|
* WaE: 'bFrac' may be used uninitialized in this functionTor Lillqvist2013-05-131-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
* fdo#46808, Convert util::PathSettings service to new styleNoel Grandin2013-05-131-15/+5
| | | | Change-Id: I302be46b46518e1e872771e1c8a0647f7c330b30
* coverity#1019431: use of freed memoryMarkus Mohrhard2013-05-081-2/+4
|
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-221-21/+5
|
* date/time IDL datatypes incompatible changeLionel Elie Mamane2013-04-183-15/+453
| | | | | | | | | | - nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
* fdo#60724 correct spellingThomas Arnhold2013-04-152-2/+2
| | | | Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
* fdo#60724 correct spellingThomas Arnhold2013-04-151-1/+1
| | | | Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
* fdo#60724 informations -> informationThomas Arnhold2013-04-1511-18/+18
| | | | Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
* SvtPathOptions with LanguageTagEike Rathke2013-04-101-11/+7
| | | | Change-Id: I33f43c6d0249a6681d451a4be8c5548da4987f9c
* use language tagsEike Rathke2013-04-101-32/+11
| | | | Change-Id: I0e0e6f05f69a173d230a32bc1c39a1bf18fc052f
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-0750-671/+653
| | | | | | | | 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
* new module i18nlangtagEike Rathke2013-04-057-9/+9
| | | | | | | | | | | 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
* unotools: remove some unused itemsThomas Arnhold2013-04-053-524/+0
| | | | | | | Change-Id: I95bcac6a3ff8cf4644c9d1596c75cac2d9cd94fe Reviewed-on: https://gerrit.libreoffice.org/3191 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
* Remove SvtInternalOptionsThomas Arnhold2013-04-052-368/+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>
* drop prefix from ::cssThomas Arnhold2013-04-021-67/+67
| | | | | | as css is already ::com::sun::star Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
* remove boilerplate commentsThomas Arnhold2013-04-011-2/+0
| | | | Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
* remove local css definitionsThomas Arnhold2013-03-301-3/+0
| | | | | | follow-up of 66a175834c39ccde9475eac3adb72a843110d01f Change-Id: I1c495041ccc4db4dd9554d49b6324e989fa46c60
* FIXME-BCP47Eike Rathke2013-03-291-0/+1
| | | | Change-Id: Id328608bcab49513d044c5029f87c5d1c21cedd2
* -Werror=unused-macrosStephan Bergmann2013-03-271-1/+0
| | | | Change-Id: I2fce1d0c7136840843b78ae301e8c4147d504272
* Replace String with OUString in RecodeStringChr. Rossmanith2013-03-261-6/+9
| | | | | | | | 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>
* Fix spelling errors and typos: 'unkown' change to 'unknown'vincent2013-03-254-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>
* Replace String with OUString (unotools)Chr. Rossmanith2013-03-201-9/+9
| | | | | | | 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>
* simplify OUString assignmentsChr. Rossmanith2013-03-201-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>
* compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)Stephan Bergmann2013-03-191-2/+2
| | | | | | | ...broken with 407b51db1831bb2cf21def88241323e35c612005 "Remove RTL_CONSTASCII_STRINGPARAM (unotools)." Change-Id: Id810c157a6e10380d28e4d6e85f908dc79cf0057
* DBG_ASSERT -> SAL_WARNStephan Bergmann2013-03-191-2/+4
| | | | Change-Id: I29a13ac9631027d7c527c3b395d4a887c290acc7
* Simply obtain theMacroExpander on demandStephan Bergmann2013-03-191-24/+7
| | | | Change-Id: I919c8f5c26d1c879dd77e691babaa4eb7f608c35