summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)AuthorFilesLines
2013-10-16unotools: add menu option to enable/disable Smart-Art lockJacobo Aragunde Pérez1-3/+20
The point of this menu option is that locked Smart-Art shapes would preserve the original XML files attached so they could be exported back to docx with no loss. The new menu option is located at Options -> Load/Save -> MS Office -> SmartArt to LibreOffice shapes or reverse. Change-Id: I6aafc2eb83404ee2c0b8538b2f6fbbbd4363e7d3 Reviewed-on: https://gerrit.libreoffice.org/6138 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-10-08No longer used header includeStephan Bergmann1-1/+0
Change-Id: I74034503b4d2d1eb438b4213bf135d831a08e9fc
2013-10-02-Werror,-Wunused-variableStephan Bergmann1-1/+0
Change-Id: Ibef564f992f3d62eab7711be66d7d465346222da
2013-10-02-Werror,-Wunused-variableStephan Bergmann1-1/+0
Change-Id: Id1fc880fa713b03fe846cee8e5c5edd733f6bdb5
2013-10-01desktop: stop replacing %PRODUCTNAME %PRODUCTXMLFILEFORMATVERSIONMichael Stahl1-12/+0
... and %PRODUCTXMLFILEFORMATNAME at runtime and hard-code OpenOffice.org 1.0 for these too. Change-Id: Id96390506d2a0f367f932e85d3115362ad483bc3
2013-10-01remove run-time replacement of %WRITERCOMPATIBILITYVERSIONOOO11Michael Stahl1-6/+0
Instead hard-code OpenOffice.org 1.1 as the value, since StarOffice and StarSuite are irrelevant. Change-Id: I9ab3d1cf38cf64cd4e440b3ae43158f748ead7d2
2013-09-26use makeFallback() in MakeRalLocale()/MakeRealUILocale()Eike Rathke1-4/+4
The old MsLangId::convert...() methods did implicitly fall back to a known locale, this behavior is explicitly needed here to select a proper completely known locale. Change-Id: I350989f3af679890ddb0de964c2d107420331160
2013-09-26typo fixes in commentsAndras Timar3-4/+4
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-21drop various tools/string.hxx includeCaolán McNamara2-2/+0
Change-Id: If4271c97025a56922c4f0b143cc3af214218a153
2013-09-20cook up a scheme to allow windows to have per-module settingsCaolán McNamara1-10/+9
Change-Id: I5fa62c3c2af2ccbbc7e8a61e5537488515b2808c
2013-09-17remove OUStringHashCode in favor of OUStringHashCaolán McNamara4-39/+6
(and as always if you find one, you can be sure there are 6 others in there when you grep for them) Change-Id: I9296ddbdda266c7b6d8a0ac0bc13ec5b6340cee7
2013-09-12certainly it is enough to obtain the disables dictionaries once?Eike Rathke1-1/+2
Change-Id: I323719e9c74d7c117062fb225a890a5e65c042ab
2013-09-11let us use the standard library instead of an own pow functionMarkus Mohrhard1-26/+3
Change-Id: Ib1c28fbb5d34409a42b7ea594cde9c1c1cdccdd8
2013-09-10unusedcode: remove AttributeListImplMatúš Kukan1-140/+0
Change-Id: I9c3c0d742bc2941fcf40ad69bfb744a57b3e7be6
2013-09-09Make SvtHistoryOptions not return files if they can't be openedKrisztian Pinter1-6/+22
Change-Id: I68cb3363a33b2d6ceb2330486e26d5cfa913c5e7 Reviewed-on: https://gerrit.libreoffice.org/5841 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-05getFallbackStrings() with bIncludeFullBcp47 parameterEike Rathke1-3/+2
so the various places that check the full tag first do not have to get it just to delete it again. Change-Id: Ib4e3cf1b16988464db875f1b6ac5cf4a0ab60fe5
2013-09-04Remove more unused methodsMarcos Paulo de Souza1-38/+0
Change-Id: I8fec40d767905bcca366257a67f669eaa1055cbc Reviewed-on: https://gerrit.libreoffice.org/5789 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-09-03was convertIsoStringToLanguage(), use convertToLanguageTypeWithFallback()Eike Rathke1-1/+1
Change-Id: I4cfda0f08e1d85acc7f1b5819b8e0f64c4985bb1
2013-09-03was convertIsoStringToLanguage(), use convertToLanguageTypeWithFallback()Eike Rathke1-1/+1
Change-Id: If5dfd19368e2bd94aa55e06a65d68f422bae3877
2013-09-03WaE: unused defineCaolán McNamara1-2/+0
Change-Id: I2e4c9f695529a7692b1624d2bce54441d44806b9
2013-09-03Remove more unused methodsMarcos Paulo de Souza1-63/+0
Change-Id: I79548f9dd1b83ef940e7a1302cf7b728610fed4a Reviewed-on: https://gerrit.libreoffice.org/5757 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-08-28Mark as constTakeshi Abe2-7/+7
Change-Id: If20ac542f31dd650d6d1cc22ced618f73e1ce773
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
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák6-19/+19
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-19Introduce rtl::compareIgnoreCase and deprecate rtl/character.hxx equivalents.Arnaud Versini1-7/+8
Change-Id: Id90935fd2b0f904f89477792edc8140cfc31e91f Reviewed-on: https://gerrit.libreoffice.org/5412 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist1-2/+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-08-10fdo#46037: 1 less occurrence comphelper/configurationhelper in unotoolsJulien Nabet2-49/+14
Change-Id: If188eecd0f5ea3802ec795866d21c41e643cbd63
2013-07-30Typos in debug messagesMatteo Casalin1-2/+2
Change-Id: I0b06af28959d7254b1aaca6e05c51311294bc3e7
2013-07-29Just quiet cppcheckJulien Nabet1-2/+2
Change-Id: I82d65a2ebc8023eaddb6dd1aefb872224f90b47a
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks1-3/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-07-24fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa12-26/+0
Change-Id: Ie959aa5a6874aae3c60273355a959c344e82699e Reviewed-on: https://gerrit.libreoffice.org/5083 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-23OSL_FAIL -> SAL_WARNStephan Bergmann1-17/+5
Change-Id: If0c4dce547184ca48f221793daf33e4592912cb2
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 Change-Id: I01f7a6d082a6b090c8efe71d2de137474c495c18 Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke3-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
2013-07-12DefaultFontConfiguration and FontSubstConfiguration with LanguageTagEike Rathke1-31/+37
Change-Id: I6c111392537d114358d0574f2dbdf40f684b5103
2013-07-12eliminated some back and forth conversion between bcp47 and LocaleEike Rathke1-19/+17
Change-Id: If97a4b695262a99979dbab1bcec75fe694c4de80
2013-07-11use LanguageTag and getFallbackStrings()Eike Rathke1-16/+9
Change-Id: I398fb1cd3a2f456562d879b417ec964f21f67464
2013-07-11use LanguageTag::getFallbackStrings()Eike Rathke1-15/+22
Change-Id: Id9403337375077931e976358c4410ad18ac0e092
2013-07-11use LanguageTag to convertEike Rathke1-22/+2
Change-Id: I11007c31e5b4eea39ce27876de8a65fbf563a5e9
2013-07-02fix StrictStringSort (and STL assertion in starmath test)Michael Stahl1-1/+1
OUString::compareTo may return not just -1 but any negative number. (regression from 6a08067902ddc0ec61a7c7b4b0035b303f643a50) Change-Id: I93027726b95e8d398292e1c2dee7795b1f7b7b8b
2013-07-02OUString convertion for unotoolsNorbert Thiebaud16-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>
2013-06-30Clean String and sal_Bool in toolsNorbert Thiebaud2-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>
2013-06-29remove OUString wrap for string literalsThomas Arnhold4-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>
2013-06-28datetime.cxx: remove duplicative unused operatorsMichael Stahl1-29/+0
Change-Id: I73aae52cc482f87fb27c35c5c0d9f7b378760906
2013-06-27fix 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
2013-06-21Fix fdo#52204 add new feature ignore diacritics in search for CTLabdulmajeed ahmed1-3/+16
Change-Id: Ie9044a35003217545bacea214ef59047bff3b8b1
2013-06-20-Werror,-Wdeprecated-registerStephan Bergmann1-4/+4
Change-Id: Idacccba79c1c2973e5f20804e628f6043988888d
2013-06-05Some String -> OUStringStephan Bergmann1-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
2013-06-05use uno::Reference#clear() method...Noel Grandin1-1/+1
...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-05remove unused componentcontext.hxx includesNoel Grandin2-2/+0
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048