summaryrefslogtreecommitdiff
path: root/tools/source
AgeCommit message (Collapse)AuthorFilesLines
2013-07-03SvStream: remove the error prone operator<</>>(sal_Int64)Michael Stahl1-2/+2
As the recent regression after merging AOO patch adding code serializing "long" variables has shown, this overload (which was added in 7b2a0e541567be9750dfc7d98374555967da3470) is a bad idea. In a unxlngx build, nm finds uses of the symbols _ZN8SvStreamrsERl and _ZN8SvStreamlsEl in these files: - sbxvalue.cxx: this appears to be a legitimate use with sal_Int64 - dateitem.cxx: this was accidentally changed by commit 9830fd36dbdb72c79703b0c61efc027fba793c5a - atrfrm.cxx: this was added for Table Autoformat enhancement in 7e8c0bd73ee59ff3041e55268c77203373962e51, which is after the sal_Int64 operators were added, so the file format is now platform dependent Change-Id: I78352b5429b53612c4831cdb81b587b5de5180a9 (cherry picked from commit 3835dee3c777bf10693903cb0866d22fab3794ea) Reviewed-on: https://gerrit.libreoffice.org/4685 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-10fix file and lineno info for DBG_UNHANDLED_EXCEPTIONNoel Grandin1-2/+5
which I broke in commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Ic30e985cc356d81013ced1ce74ec6c78469d9882 (cherry picked from commit 2cb247a12d682d7cda0483570b38b4469c360a94)
2013-05-21fix for linkingNoel Grandin1-1/+1
caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec (cherry picked from commit 6bf00f0f94394c62bddcd77b776e4e3592160201) Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2013-05-21move DBG_UNHANDLED_EXCEPTION out of lineNoel Grandin1-0/+49
makes it easier to set a breakpoint on it. Plus it's getting a little big to be a macro. Change-Id: I2827aa3618ba966fbc85a4a56e0e794a55630730 Reviewed-on: https://gerrit.libreoffice.org/3988 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-19Secured some places where PolyPolygons were createdArmin Le Grand1-17/+0
using a all-points count and a all-points array (cherry picked from commit 8ee49906f04106317997e9ca3bb890870816e274) Conflicts: svtools/source/filter/wmf/enhwmf.cxx svtools/source/filter/wmf/winwmf.cxx tools/inc/tools/poly.hxx tools/source/generic/poly2.cxx Change-Id: I57f7f08d8dd87c83c30ab2d16ca22b772b2bd834
2013-05-17resolved fdo#63805 max day of month of the intended monthEike Rathke1-9/+20
Since 6619955e72c1c2f29a32e82478d19147c0d7610a Date::GetDaysInMonth() operates on the normalized value that corresponds to the actual values set at the Date instance, obtain and set number of days for the intended month instead of using the rolled-over date. Change-Id: Ia6b007675104f8e134b278f216c3bb48b72f061c
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann1-2/+2
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-13Resolves: #i115917# Better conversion of C1 and C2 bezier curve pointsArmin Le Grand1-9/+37
Patch by: osnola Review by: alg (cherry picked from commit 76741df0b60b9157710f8e66720275749dbf98bd) Conflicts: tools/source/generic/poly.cxx Change-Id: I0de15a92e68b766258e285ed17365816064da141
2013-05-09fdo#63154: Remove _CL and _LF from solar.hMarcos Paulo de Souza2-23/+22
And use RTL_CHAR_{CR,LF} from rtl/string.h Conflicts: vcl/source/app/dbggui.cxx Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a Reviewed-on: https://gerrit.libreoffice.org/3740 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-05-08zlib: remove ExternalPackage_zlibMichael Stahl1-7/+1
Change-Id: I5bce88b2044279a6563fd68c35f9c1ac824c8850
2013-05-02Show only filename in "Recent Files" listSamuel Mehrbrodt1-0/+6
As discussed here: http://nabble.documentfoundation.org/Libreoffice-ux-advise-Recent-files-dropdown-td4052945.html#a4052996 The changes are (inspired by Gedit): * Display only the filename, not the (abbreviated) path * Show the protocol name before the file, if not local (e.g. "ftp: myfile.odt") * After the keyboard shortcut (a number from 1 to 10) display a '.' instead of a ':' (because the protocol has a ':') * FIX: Display whitespace as whitespace, not "%20" Change-Id: I47472c901aa866adb76c7c7ab36bc871f82ad8df Reviewed-on: https://gerrit.libreoffice.org/3700 Reviewed-by: Jan Holesovsky <kendy@suse.cz> Tested-by: Jan Holesovsky <kendy@suse.cz>
2013-04-30redo fix for fdo#64078Noel Power1-1/+1
use std::abs instead of labs Change-Id: Icb09fb1715d4795c718773a37e66947d67019bb7
2013-04-30fix for fdo#64078Noel Power1-1/+1
Change-Id: Ib8c70b0074485ccd8bf6095c070610fe90e22d4a
2013-04-27Bin ugly (ab)use of preprocessor in headersTor Lillqvist2-2/+0
The time when it made sense to use "clever" #ifdefs to, for performance or compiler reasons, conditionally bypass private parts of a class declaration passed a decade or longer ago. Still more of this in sw and sc. People working on those modules might want to do it too, or not. Change-Id: I1053139ca5e5e2631f7b22d99d3bada54fc337be Reviewed-on: https://gerrit.libreoffice.org/3627 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2-42/+10
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza4-21/+21
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-19tools ::Time: change constructor to fixed-length integersLionel Elie Mamane1-1/+1
Change-Id: I20180cda1a28f898f487aff605796077d3418be3
2013-04-19Wrap large values in SAL_CONST_INT64Stephan Bergmann1-3/+3
Change-Id: I9a263e2232d63e5794f757cab39b93e13c7d159f
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane4-94/+181
- 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-12Kill empty ImpDeInitWinTools() and the header with only its definitionTor Lillqvist1-8/+0
Change-Id: Ica82a4612da952c0c084974b708ef9dac753dcf6
2013-04-12The silly toolsdll.cxx was the same for unx and winTor Lillqvist1-0/+33
Change-Id: Ia83a37980446ee9a52e096e64a9ab77f106c8b37
2013-04-10Introduce characters utilities in rtl/character.hxxArnaud Versini1-49/+50
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with slight modifications to sal/inc/rtl/character.hxx: * Replaced "#pragma once" with explicit include guard for now. * Missing includes. * Cosmetic clean-up. Change-Id: I94d01cd4e766f92c70f941839a67101fa2c97654
2013-04-08make internal method static.Michael Meeks1-1/+1
Change-Id: Id2b5bd1772009785b4aa44bf4de91e5c1b372c9e
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák19-385/+380
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 Rathke1-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-04fdo#61514 clean obsolete tools/ filesystem abstractionAndras Timar10-3584/+0
Change-Id: I7d1d5eca43d0b0f9a013e31383abc574a7b15f93
2013-04-04remove useless commentsAndras Timar2-6/+0
Change-Id: I90757f0d6ccdded30a49a3c54cd6bbc2f65dc755
2013-04-04fdo#44994 write out tools' FileCopier classAndras Timar3-482/+1
Change-Id: Ie3d04f0b2ed35099d5682d165e17c10a6d736f99
2013-04-04remove unused header: tools/fsys.hxxAndras Timar1-1/+0
Change-Id: Ifa740f558e5c5e9d51516b54a2b32790dbb23dd4
2013-03-29ResMgr with LanguageTagEike Rathke1-99/+52
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-27-Werror=unused-macrosStephan Bergmann1-1/+4
Change-Id: Ic44d85b0180612d499beec35e944402becd181a7
2013-03-27-Wunused-macrosStephan Bergmann3-7/+1
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-25remove unnecessary tools/fsys.hxx headerAndras Timar1-1/+0
Change-Id: If1b960853800488daf6f2a8e2a2679c7dbbdf9e9
2013-03-24Clean obsolete tools/filesystem abstractionTomas Turek2-3/+0
Change-Id: I74f99c48b822644b26486a66d2f15386991154d6 Reviewed-on: https://gerrit.libreoffice.org/2968 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-03-23tools: TempFile: create a file in ctor, not a directoryMichael Stahl1-1/+1
related: fdo#62617 (regression from a548924aece3dc99b2aa36b5c9b0fa52de9951ae) Change-Id: Ie29a22e2bacc5fc31c9a5d1c33c01c3b6f22fe49
2013-03-23tools: move some code around so there is less of itMichael Stahl2-17/+7
Change-Id: Ib93ce32cbdceae959989f9575899be0519db8377
2013-03-22clean up DBG_ERRORnThomas Arnhold1-9/+2
Those were DBG_ERRORn before and were falsely changed to OSL_TRACE by me. See: 1707a350af8a0909ae88c2b11deb714f8b2a93ff 533f89e49395bbc31baaab9ade46db934b383e14 Change-Id: I4f4188ba25b988128a539542f49797ea6985702e Reviewed-on: https://gerrit.libreoffice.org/2900 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-22tools: remove no longer needed CONSTASCII_STRINGPARAM macroMiklos Vajna1-9/+4
Change-Id: I5edf79ed165b8ed8e96e091f3f29ded0ac6067f2
2013-03-22SEARCHDELIM_C() was unusedTor Lillqvist1-2/+0
Change-Id: I64432470c3d53ec58d4bfe7ce5756f44bcfa5ac8
2013-03-21The private SvFileStream::GetFileHandle() was used only on UNXTor Lillqvist1-5/+0
Drop the Windows implementation which wasn't x64-clean anyway. Change-Id: I1622196dc4c3b940cc8d629016985cf97480a059
2013-03-16Remove RTL_CONSTASCII_(U)STRINGPARAM in toolsChr. Rossmanith14-198/+160
Change-Id: Id97070321ad6b20f349896d3b4e1ae51cc82ece7 Reviewed-on: https://gerrit.libreoffice.org/2769 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12fix merge conflictThomas Arnhold1-1/+1
Change-Id: I015a0065a88022ad4ff93711f1faae2874ccf506
2013-03-12tempfile: Creating tempfiles in a given folder is not usedThomas Arnhold1-72/+23
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-11fdo#38838: Converting String/UniString to OUStringelixir1-4/+4
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-11Change definition of "dark" colour for fdo#61993Luke Deller1-1/+1
- Increase the threshold for "dark" colours from Luminosity<=38 to Luminosity<=60. This makes LibreOffice align more closely with MS Word when considering whether "automatic" font colour should be black or white, a decision that is based on whether the background colour is "dark". Beware that this also affects other areas. - Fix the coefficients for GetLuminosity which appeared to be off by one according to the "Rec 601" coefficients for Luma quoted at http://en.wikipedia.org/wiki/Luma_%28video%29 Change-Id: I0af1f77909713e3db5ea8ee98456146569679594 Reviewed-on: https://gerrit.libreoffice.org/2601 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-09fdo#43460: use isEmpty()Thomas Arnhold1-1/+1
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-08fix regression reading OleStorages ( over THRESHOLD size )Noel Power1-1/+1
Change-Id: I26daefd898873037325c02d96018890ebc7cb1b6
2013-03-07fdo#38838 Replaced some use of (Uni)String with OUString.Jean-Noël Rouvignac1-1/+1
Change-Id: Iad623c9300919fbae34279268a5a720f978c6434 Reviewed-on: https://gerrit.libreoffice.org/2514 Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-04Translate German commentsPhilipp Weissenbacher1-4/+4
Change-Id: I3c4b8fa5b80bdd4a38dc9ea15ad805e9430a6e68 Reviewed-on: https://gerrit.libreoffice.org/2540 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-04The macro FEAT_FSYS_DOUBLESPEED has been removed and the related #if / ↵Jiri Blecha3-23/+10
#endif have been removed too. Bug: 61516 Change-Id: Id347e87a8789ddbe550dde7d7281d9c1cad0c199