path: root/tools/inc
AgeCommit message (Collapse)AuthorFilesLines
2021-04-09Recheck include/ with IWYUGabor Kelemen1-0/+1
See tdf#42949 for motivation Change-Id: Ifc253bf800bb1468b5774663a93f4fb30bec81d3 Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2021-04-06update pchesCaolán McNamara1-2/+1
Change-Id: I835c8fcc237ece5cf9d7a3b261645139d022e9b4 Reviewed-on: Tested-by: Jenkins Reviewed-by: Caolán McNamara <>
2021-03-13update pchesJulien Nabet1-2/+2
Change-Id: Id6dfae9fb97fbe3fc89b9f2e083d7a3d5c1d36d3 Reviewed-on: Tested-by: Jenkins Reviewed-by: Julien Nabet <>
2020-12-04update pchesCaolán McNamara1-1/+4
Change-Id: I3e22c2000da03f6f3345353846213203993aa865 Reviewed-on: Tested-by: Jenkins Reviewed-by: Caolán McNamara <>
2020-10-19add tools::Long typedef and use it in toolsNoel1-1/+1
first step to switching long to a 64-bit type on 64-bit windows Change-Id: I640d807426dfe713c7a8984ef560575f8288dbeb Reviewed-on: Tested-by: Jenkins Reviewed-by: Noel Grandin <>
2020-10-17tdf#124176: Use pragma once instead of include guardsmariamfahmy1-5/+1
Change-Id: I9d5fe8d61286c2fe167d4733c36e1fc3976d0b43 Reviewed-on: Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <>
2020-07-01loplugin:constantparamNoel Grandin1-1/+1
Change-Id: Ie9d4761747f7e97f63f34394b5a8b9f0bb287a0e Reviewed-on: Tested-by: Jenkins Reviewed-by: Noel Grandin <>
2019-10-18make bin/update_pch.s always include code in trivial #if'sLuboš Luňák1-2/+3
E.g. #ifdef LIBO_INTERNAL_ONLY is always true for code that builds with our PCHs. Change-Id: I3cf311ea3621b909105754cfea2cb0116b8b67f5 Reviewed-on: Tested-by: Jenkins Reviewed-by: Luboš Luňák <>
2019-05-12regenerate PCH headersLuboš Luňák1-5/+3
Change-Id: I4894023e42cbfa32916ee3ddfb2cfb5426cfc69f Reviewed-on: Tested-by: Jenkins Reviewed-by: Luboš Luňák <>
2019-05-09regenerate PCH headers for the 4 new levelsLuboš Luňák1-10/+14
Plus some build fixes triggered by this. Change-Id: I59b21def706598ceffd45ae5b1f0262ec9c1ad50 Reviewed-on: Tested-by: Jenkins Reviewed-by: Luboš Luňák <>
2019-04-30tdf#42949 Fix IWYU warnings in tools/Gabor Kelemen1-6/+0
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I47974f5c24819eb60e6724f42d51bb206dc26d21 Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2018-05-05Fix typosAndrea Gelmini1-1/+1
Change-Id: I70e17e06279ca8d11a482011c8c74c14ec692ba1 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Julien Nabet <>
2018-05-04tools: Avoid looking up system clock twice to get DateTimeTakeshi Abe1-0/+26
DateTime::DateTime(DateTimeInitSystem) had initialized Date and Time separately, which causes a slight possibility that it could get a wrong datetime with almost 24 hours delay when it went beyond midnight. E.g., the date part was of the previous day while the time part was of the next day. This also reduces duplicate code by sharing GetSystemDateTime(). Change-Id: I352d90f468f5cbc70e7936a337bed97365baa06c Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Eike Rathke <>
2018-03-08loplugin:constantparam in svtools..unotoolsNoel Grandin1-1/+1
Change-Id: I6e72fbe44dcb65ee5162448e9a72e6437d56b044 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2018-02-21Revert "simplify ImpXPolygon"Stephan Bergmann1-1/+0
This reverts commit f9c2bcc8b761f5e21354c0fb7bca6aa432d11ec2. Drawing all sorts of curves and polygons in Draw causes various crashes in svx/source/svdraw/svdopath.cxx, apparently because in the past ImpXPolygon's pPointAry had a "buffer" of more elements (nSize) than it had nPoints, and the code heavily relied on that, assigning to such excess elements of pPointAry past nPoints (and presumably calling XPolygon::SetPointCount later?). Conflicts: svx/source/xoutdev/_xpoly.cxx (Reverted the mostly, if not completely, automatic changes there done by 924c0e34fdc36cd44100dafc2c68656ce32374e6 "loplugin:changetoolsgen in svx"; they will need to be re-done.) Change-Id: I6cb41fd218c3bdd0b3bbeb45f5b3d68649901a48 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Stephan Bergmann <>
2018-02-06simplify ImpXPolygonNoel Grandin1-0/+1
just use a std::vector<std::pair<Point,PolyFlags>> Change-Id: I85de832af9095a33bda1620781c3b231a345e07c Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2018-01-13loplugin:useuniqueptr in PolyPolygonNoel Grandin1-14/+24
Also - convert to o3tl::cow_wrapper - drop the second param to the constructor and just let vector use it's own resize logic - bump MAX_POLYGONS from 0x3FF0 to 0xffff so that the ios2met filter can load it's files properly. Change-Id: I9db19e4f7b4f946e801ea07c31d2d0ded7837a0e Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2017-12-15merge ImplPolygon and ImplPolygonDataCaolán McNamara1-6/+2
Change-Id: Ia59a4533965bb3b76c73cc23c31bff4718768339 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2017-12-14use std::unique_ptrCaolán McNamara1-4/+3
Change-Id: I9f94077e7ce3b43007172a34666b502770f2c581 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2017-12-10tdf#62525 tools: use cow_wrapper class for PolygonAndreas Brandner1-1/+13
Change-Id: I78f141762f593b36d32eb3eb2cda8fdae54b7277 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Thorsten Behrens <>
2017-09-22Fresh run of bin/update_pch.shMike Kaganski1-12/+6
Change-Id: I69d4157aaf6570cecd51ea59df20556914942e06 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Mike Kaganski <>
2017-07-21migrate to boost::gettextCaolán McNamara1-1/+0
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-01-17replace boost::checked_deleter with std::default_deleteJochen Nitschke1-1/+0
and remove all traces of boost/checked_delete.hpp Change-Id: I4486d0e07a7197d75f8739c8c6d79670163eaab2 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Jochen Nitschke <>
2017-01-02ofz#372 check if ImplSplit succeededCaolán McNamara1-1/+1
Change-Id: I1e34295fe3ee5f77e787f583616d52fa92a0eca4
2016-12-07convert PolyFlags to scoped enumNoel Grandin1-3/+4
and remove the XPolyFlags enum, which has the same values and was being converted to PolyFlags anyhow Change-Id: Iaead84933c79a7603698a4e50257dd944df89c41 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2016-10-03loplugin:countusersofdefaultparams in sw..vclNoel Grandin1-1/+1
Change-Id: I152df55f5a30e073c66cfd3a64d5090a20cb232d Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-07-13loplugin:constparams in toolsNoel Grandin1-1/+1
Change-Id: Iea05efbb90a0a95fefd18ae9673095a31422f06c Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2016-07-11loplugin:nullptr: Better heuristic to determine code shared between C and C++Stephan Bergmann1-3/+3
Change-Id: I51e1c5fa4639e51fac90f92adf3d87d12960d589
2016-04-13tdf#94306 remove unused boost dependenciesJochen Nitschke1-1/+0
remove <boost/noncopyable.hpp> in pch and remove boost from makefile if it was the only boost entry. Change-Id: Icb945ae59c137571f4f63807601738eea5c3e831 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Michael Stahl <>
2016-01-31OSL_THIS_FUNC is a rip-off of BOOST_CURRENT_FUNCTION so we can use thatCaolán McNamara1-1/+0
as a direct drop in I guess Change-Id: I3add63f1459f4e659019bd6db54da2f5431958ce Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian1-45/+38
Ported to Python with improved performance and features. The new script is invoked from the same which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts ( which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2015-11-05(Poly)Polygons: sal_uIntPtr to sal_uInt32/sdt::size_t/enumMatteo Casalin1-2/+2
Change-Id: I167d656f419ddbeb72960b8510fb8084605d4d5c
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud1-1/+3
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Norbert Thiebaud <>
2015-06-30remove some unnecessary typedefs to pointerNoel Grandin1-3/+2
that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara1-1/+0
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-02-05Updated all precompiled headers.Ashod Nakashian1-0/+5
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara1-1/+1
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-09-24Remove o3tl/heap_ptr.hxx, use std::unique_ptr insteadStephan Bergmann1-1/+0
Change-Id: Iac70c9be13892a36bfb5975f62e5345b88d4f144
2014-08-13update_pchThomas Arnhold1-0/+5
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-05-22update_pch: add toolsThomas Arnhold2-0/+97
Change-Id: Icb95d60a7f786ee75ea1904cfb7292e51eb607cc
2014-05-15Resolves fdo#70681: all that's leftThomas Arnhold1-2/+2
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-11-13unused header fileCaolán McNamara1-31/+0
Change-Id: I179cc3dc58484ab1e21af3b1d776188d52f3974c
2013-10-21drop DBGCHECKSTRINGCaolán McNamara1-4/+0
Change-Id: I0c60becfd3a61cffb46c76e6f1488528c59b46e9
2013-08-16Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unusedCaolán McNamara1-1/+0
Change-Id: I2a2cc56cf005f564c798b8d43ef7e8c4b7f9eeff
2013-06-30Clean String and sal_Bool in toolsNorbert Thiebaud1-2/+2
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: Reviewed-by: Norbert Thiebaud <> Tested-by: Norbert Thiebaud <>
2013-04-23execute move of global headersBjoern Michaelsen65-13221/+0
see and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-24/+4
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: Reviewed-by: David Tardon <> Tested-by: David Tardon <>