summaryrefslogtreecommitdiff
path: root/tools/inc
AgeCommit message (Collapse)AuthorFilesLines
2013-04-20we want the int. overloads of abs() hereDavid Tardon1-1/+1
Change-Id: Ie82c51f65a2a0e13d6d30c85a23286574fd50b90
2013-04-20Include <cmath> for std::abs()Tor Lillqvist1-0/+1
Change-Id: Id94260d41e821386e2c0aef67075658bee7fd49f
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza2-21/+6
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-2/+2
Change-Id: I20180cda1a28f898f487aff605796077d3418be3
2013-04-19Wrap large values in SAL_CONST_UINT64Stephan Bergmann1-4/+4
Change-Id: I865808911043a61de5c4209fa889dbff7c8baf28
2013-04-19Presumably "call clock" should be "wall clock"Tor Lillqvist1-1/+1
Change-Id: I7bcdfccc17de7057cc47720bd6ce78345f2d6d7c
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane2-19/+35
- 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-16Move {pre,post}x.h to where {pre,post}mac.h and {pre,post}win.h areTor Lillqvist2-125/+0
Change-Id: I561aa6cc1de7ed6128d25c82cd493d5d5718e052
2013-04-15fdo#60724 correct spellingThomas Arnhold1-1/+1
Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
2013-04-15fdo#60724 correct spellingThomas Arnhold1-1/+1
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-12Get rid of SHL_SBCTor Lillqvist1-1/+1
GetAppData(SHL_SBC) was used only locally in the sb library so no need for it. Just use a static pointer field. Change-Id: I37c8429b6c9e521a00c52bb622f78bdc4afe345c
2013-04-12Get rid of GetAppData(SHL_IDE)Tor Lillqvist1-1/+1
It seems to be used only locally in basctl so there is really no reason for it. Change-Id: I9ad0a67621e190257e028fd3689f692e639eaf56
2013-04-10Bin a local X11 wrapper header, vcl/inc/unx/salstd.hxxTor Lillqvist2-14/+14
We already have <tools/prex.h> and <tools/postx.h>, so make those be sufficient instead. Bin another local vcl header vcl/inc/unx/svunx.h that just included those prex.h and postx.h. Adapt includers accordingly. Change-Id: I6638b3260fd3da45478fcc216b41f8c8a539f0d7
2013-04-10Introduce characters utilities in rtl/character.hxxArnaud Versini1-16/+17
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-07remove needless forward rtl::OUString declarationsLuboš Luňák2-5/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák18-305/+305
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-07Typo in comment in resmgr.hxxChris Sherlock1-1/+1
Change-Id: I6378c79f77ab897bf5a4e39c00944037beeef328 Reviewed-on: https://gerrit.libreoffice.org/3220 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-04-05new module i18nlangtagEike Rathke3-3/+3
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 Timar1-335/+0
Change-Id: I7d1d5eca43d0b0f9a013e31383abc574a7b15f93
2013-04-04fdo#44994 write out tools' FileCopier classAndras Timar3-99/+0
Change-Id: Ie3d04f0b2ed35099d5682d165e17c10a6d736f99
2013-04-04delete unused header fileAndras Timar1-42/+0
Change-Id: I96a620475f9618b55fc0b3a294037ca5968b683c
2013-03-29ResMgr with LanguageTagEike Rathke2-14/+8
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-26Change how Rectangles are printed, special case for EMPTYTor Lillqvist1-2/+5
Change-Id: I0fe230875e785b811ae09e04399790a53b354dd6
2013-03-21debug: remove binfilter debug macroThomas Arnhold1-3/+2
Change-Id: I419c37860a21ae5ab416a2c8ec3c742fbaf6a980
2013-03-21The private SvFileStream::GetFileHandle() was used only on UNXTor Lillqvist1-1/+2
Drop the Windows implementation which wasn't x64-clean anyway. Change-Id: I1622196dc4c3b940cc8d629016985cf97480a059
2013-03-16Remove RTL_CONSTASCII_(U)STRINGPARAM in toolsChr. Rossmanith1-8/+8
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-12tempfile: Creating tempfiles in a given folder is not usedThomas Arnhold1-9/+8
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-2/+2
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-2/+2
- 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-04SHL_SHL1 now unused, tooThomas Arnhold1-1/+1
Change-Id: If73c578cf698b11b14b0f97b5f0deb0febac9b2f
2013-03-04remove unused and commented out codeThomas Arnhold1-1/+1
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04The macro FEAT_FSYS_DOUBLESPEED has been removed and the related #if / ↵Jiri Blecha1-6/+2
#endif have been removed too. Bug: 61516 Change-Id: Id347e87a8789ddbe550dde7d7281d9c1cad0c199
2013-03-03binfilter: remove some tracesThomas Arnhold2-24/+1
Change-Id: I5b03dcb5d1f8c73c7a308e7ae209cc7872f18c61
2013-02-27fdo#39446 - Bloat Removal. Removing uncallable code with callcatcherJean-Noël Rouvignac1-1/+0
Removed several unused methods. Could not remove ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() and ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) because it breaks compilation (they are implementing pure virtual methods). Should Test::test1Table1Page() really be removed? (test class) Conflicts: unusedcode.easy Change-Id: I98a761f66f28e3a82661c10a5fa1dc7e109fff2f
2013-02-27tools: move FileCopier out of public headers, and remove unused bits.Michael Meeks2-68/+92
Change-Id: Iccd052ae2587bb4448ecb5bc94aeba5dd2a2291e
2013-02-24fdo#38838 searched, replaced and removed String::CreateFromInt32().Jean-Noël Rouvignac1-1/+0
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ And finally removed String::CreateFromInt32(). Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5 Reviewed-on: https://gerrit.libreoffice.org/2279 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-23Fix typo "sucessfully" -> "successfully"Julien Nabet1-2/+2
Change-Id: I01c85e4d3853c44fa05acc3019bc35c56c4f655e
2013-02-08fdo#38838 Some removal/replacement of the String/UniString with OUStringJean-Noël Rouvignac1-4/+4
Change-Id: I6daea312198fae3a9717bd8d4fea6371aa4cd275 Reviewed-on: https://gerrit.libreoffice.org/1962 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-22Detect SvStream::operator<< calls with bool args w/o using -Wsign-promoStephan Bergmann1-0/+2
...as -Wsign-promo caused other problems and has been removed again with 488823a140217e393298bc83e75084041a85ed45 "Remove -Wsign-promo." It had originally been introduced with e8bbb76827dd7a0e30d7d1db34a812a84d85f390 "ensure correct export size type in stream operation," apparently to detect an SvStream::operator<< call with a bool argument that would pick the "int" overload instead of the "unsigned char" (aka sal_Bool) one (which would have happened to trigger the -Wsign-promo warning "by luck," given that sal_Bool is unsigned char and not signed char, say). Change-Id: I0bf4389753e53a535bd90ca2a98b6a5be63d179a Reviewed-on: https://gerrit.libreoffice.org/1798 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-22make fast string concat comparisons non-ambiguousLuboš Luňák1-0/+52
Follow-up to https://gerrit.libreoffice.org/#/c/1803/ . Change-Id: I9131854a579ef57e38dfef7faa539bec98fc305b
2013-01-22tools/string.hxx: add operator==/!= for OUString/StringMichael Stahl1-0/+22
This has the disadvantage that it makes comparisons involving fast OUString concatenation via operator+ ambiguous, as can be seen in scriptdlg.cxx, but it allows comparing String and OUString wihout explicit conversion, which is nice for incrementally converting code. Change-Id: Ibfc728bdb161a01e0f8311915c97bcbba8b58c0b Reviewed-on: https://gerrit.libreoffice.org/1803 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-07Cleanup: #include <tools/gen.hxx>Matteo Casalin2-4/+16
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-12-29Revert "String Cleanup and news OUString methods/constructors"Tor Lillqvist1-2/+1
Broke a unit test and made all tinderboxes red. This reverts commit 3179055dc3e267c961a5618c810fbc0df1858d72.
2012-12-28String Cleanup and news OUString methods/constructorsRicardo Montania1-1/+2
Change-Id: Ia6142020330d0e12650fdc519b66f00e607eac42 Reviewed-on: https://gerrit.libreoffice.org/1491 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-12-17remove unused ifndefMarkus Mohrhard1-2/+0
Change-Id: I759d2c7cea6a27fe676d1c1a17586445aa013ee9
2012-12-17UniString::Fill -> OUStringBuffer::padToLengthCaolán McNamara1-2/+0
none of these strings starts out before "Fill" longer than the size they are asked to be filled to so there are no trailing unfilled bits to consider all of which means that we can get rid of UniString::Fill now Change-Id: I8da21e9787017da9243a2c1d7118d3fbcca2a7fb
2012-12-14callcatcher: update unused code listCaolán McNamara1-2/+2
Change-Id: Ie975cd2df17461de1bb94a23d4daf081f6588fe7
2012-12-13whitespace cleanupNoel Grandin1-17/+17
Since I'm hacking in this file anyhow, make the class definition a little prettier. Change-Id: Id47f1084fe103e85cf1dacc84a9e536774767e61
2012-12-13make the "inline" method attributes match with the method definition.Noel Grandin1-23/+23
And make the whitespace layout a little cleaner. Change-Id: I12b042600f061e74825de92ce836ee34ebdfabdb
2012-12-10Replacing '__LOADONCALLAPI' with 'SAL_CALL' definitionChristos Strubulis1-6/+0
Change-Id: I692a9cfdca5ad50170eea2178a6aa87e8154b951