summaryrefslogtreecommitdiff
path: root/sot/inc
AgeCommit message (Collapse)AuthorFilesLines
2019-10-18make bin/update_pch.s always include code in trivial #if'sLuboš Luňák1-16/+5
E.g. #ifdef LIBO_INTERNAL_ONLY is always true for code that builds with our PCHs. Change-Id: I3cf311ea3621b909105754cfea2cb0116b8b67f5 Reviewed-on: https://gerrit.libreoffice.org/80961 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2019-05-09regenerate PCH headers for the 4 new levelsLuboš Luňák1-12/+9
Plus some build fixes triggered by this. Change-Id: I59b21def706598ceffd45ae5b1f0262ec9c1ad50 Reviewed-on: https://gerrit.libreoffice.org/71581 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-11-05tdf#42949 Fix IWYU warnings in include/sot/*Gabor Kelemen1-0/+2
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ic5d0dd8c712e74825ed0d0de6bf366568ca48f25 Reviewed-on: https://gerrit.libreoffice.org/62460 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-09loplugin:constfields in smoketest..sotNoel Grandin1-4/+4
Change-Id: I59ceda8ff85cc7b348882a6e1c62491b74297801 Reviewed-on: https://gerrit.libreoffice.org/61549 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-29tdf#115574 sot: fix Excel -> Writer pasteMiklos Vajna1-0/+20
Reported problem is that nothing happens for paste. Direct cause is that BITMAP is selected as the format, and Excel advertises BITMAP, but when we try to import that, it fails. There are 3 interesting commits in the recent history for this topic: - commit c47db038f98aaf7aec3cbe57c4e5683591afa23e (fdo#52547 SOT: Prefer embedding image data to embedding linked image., 2014-02-07) was a bugfix due to newer firefox - commit 538c13f3d1756f2d105115f64ab1bc0b7426eebc (fdo#78801 fdo#52547 Paste preference is image, then html, then text., 2014-05-28) was a regression fix from the previous fix - commit a96a7ce51aa98fb9ee97ea3803e2b7e648611008 (fdo#81835 Don't prefer GDI Metafiles to RTF/HTML, 2014-08-05), was a regression fix from the previous fixes Going back to the original state shows that the Excel -> Writer use-case used to be RTF. Restore the old Excel -> Writer (RTF) behavior by: - going back to the original state, ignoring the enum class conversions - re-fix fdo#52547: prefer bitmap over html, but leave everything else unchanged - fdo#78801 needs no fix in this case - fdo#81835 needs no fix in this case - tdf#115574 selects RTF -> table shows up After all these complications, the actual fix is surprisingly simple. Change-Id: I2d728afa7d1dd7888fa43525366c197d806eea6c Reviewed-on: https://gerrit.libreoffice.org/52120 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2018-02-02sot: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski1-7/+0
Change-Id: I0a0dc82561968cd1ff179c9930525e188060d9b7 Reviewed-on: https://gerrit.libreoffice.org/49050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-22Fresh run of bin/update_pch.shMike Kaganski1-10/+10
Change-Id: I69d4157aaf6570cecd51ea59df20556914942e06 Reviewed-on: https://gerrit.libreoffice.org/42565 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-25errinf.hxx moved out of tools and into vcl moduleChris Sherlock1-1/+1
ErrorInfo has a hard depency on VCL, yet is in the tools package. It is more appropriate to have it reside in the VCL module. Change-Id: Ica54a46c3a7f86cf0331ed7245234bea69c05650 Reviewed-on: https://gerrit.libreoffice.org/36839 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-17use consistent #define checks for the Windows platformNoel Grandin1-1/+1
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-05SotFactory is in fact not used: remove + cleanupMatúš Kukan2-110/+0
Also SotData_Impl is used only in exchange.cxx now. Move there. Change-Id: I548095c2226d92aea4193bb1a3671e2381996435
2016-01-05Make SotFactory private to sot/ and clean a bitMatúš Kukan2-0/+110
Change-Id: Ia683280a3e95eee995e036db6bde5d28852f92ff
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian1-66/+52
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh 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 (update_pch_autotune.sh) 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: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-115th step to remove tools/rtti.hxxOliver Specht1-1/+0
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-10Missing includesAshod Nakashian1-0/+36
Restored some missing includes and refactored sot/formats.hxx. Change-Id: I11b7102b06889f426f5e0f3efa3a835c6e774d88 Reviewed-on: https://gerrit.libreoffice.org/19891 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2015-09-17boost->stdCaolán McNamara1-1/+0
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe1-1/+1
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-05Updated all precompiled headers.Ashod Nakashian1-0/+1
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-13update_pchThomas Arnhold1-0/+2
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold2-0/+106
connectivity: 3m52s -> 2m47s cppcanvas: 28s -> 13s cppuhelper: 20s -> 14s dbaccess: 2m38s -> 2m01s hwpfilter: 16s -> 13s sot: 21s -> 16s Change-Id: I49286bfe6be73dd1b861be632b95e17a99e82f8a
2013-04-23execute move of global headersBjoern Michaelsen10-1595/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-20Remove pass-through header file sot/inc/sot/clsids.hxxMichael Dunphy1-27/+0
Change-Id: I122669d4ffaf72fb1d5f6fccc98e8a648f31aa23 Reviewed-on: https://gerrit.libreoffice.org/3490 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák3-11/+11
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-02-04warning C4805: '!=' unsafe mix of type 'bool' and type 'sal_Bool'Stephan Bergmann1-3/+3
Change-Id: Iaf8de7c729b3cefed8620dec7fe4dd1427305e50
2012-11-17callcatcher: remove another layer of binfilter-released methodsCaolán McNamara1-1/+0
Change-Id: Id5bedd660b2ada460ffc48ce28d4f8ab9cd89226
2012-11-14callcatcher: more binfilter freed up methodsCaolán McNamara2-8/+0
Change-Id: Iea3716e5c7a21f083f36ce4b8d43ae9fc85227f7
2012-11-14The additional methods of SO2_*_REF over SV_*_REF are now unusedCaolán McNamara4-72/+6
so they can now be replaced by SV_*_REF now Change-Id: I2207d6582cab5f41851064f3d0c773e9421c0078
2012-11-14callcatcher: update unused code post binfilter deathCaolán McNamara2-14/+1
Change-Id: I5b25d14ef2769126f98523551597f43812b9feb7
2012-11-09binfilter.die.die.dieNorbert Thiebaud1-5/+1
Change-Id: Ia3c103e4343d309b997ed37e33a382ffdfbddac3 Reviewed-on: https://gerrit.libreoffice.org/1014 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-08-20callcatcher: remove some of the slightly trickier unused methodsCaolán McNamara1-1/+0
Change-Id: Ief164c980f3a92316e1f47cb50bdf243155b6dd9
2012-08-07Remove non-existing forward declarationsThomas Arnhold1-1/+0
Those classes don't exist. So remove friend class operators too. Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-06-27Remove unused header filesThomas Arnhold1-40/+0
These were only referenced by Package_inc.mk... Change-Id: Idc771477595b9d221f9f2003b293fdd1ba7e1588
2012-06-22re-base on ALv2 code.Michael Meeks8-190/+118
2012-06-21replace all but one .hdl include with equivalent .hpp includes.Michael Meeks1-1/+1
Change-Id: I15e94f112144549692d0c2babeb48c77adcb93a9
2012-06-21reduce scope and replace some String::CreateFromAsciiCaolán McNamara1-10/+5
Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8
2012-06-21re-base on ALv2 code.Michael Meeks5-127/+82
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-05This SyncSvStream/SyncSysStream stuff isn't usedCaolán McNamara1-4/+0
and doesn't seem to make a lot of sense Change-Id: Ie59e39c88070b6620cb7683e69052314d732c54a
2012-05-25Revert "Make SotStorage and SotStorageStream dtors public"Fridrich Štrba1-2/+2
This reverts commit 90f3840e4c767154266c6be1c532f5e748e8c3f7.
2012-05-25Make SotStorage and SotStorageStream dtors publicFridrich Štrba1-2/+2
Change-Id: I3ca0d308199bc4acf66a4c473d8b48561560d631
2012-05-03Fix sot stream bustageCaolán McNamara1-3/+3
We want the Tell position of the wrapper stream, not that of the underlying wrapped stream. Change-Id: I5d30192dbc3746104ca2127d9a747ef70b85a136
2012-05-03Related: fdo#47644 compound storage backend is poor at knowing stream sizeCaolán McNamara2-0/+4
Change-Id: Ie4aa6939f9f37e04fda5425a6e28c5d846a9cb62
2012-03-23ditch archaic ifdefs for gcc 2.8.1, 2.9.0 and 2.9.1Caolán McNamara1-4/+0
2012-03-05Remove unused codeElton Chung1-1/+0
2012-03-01Remove unused codeElton Chung1-17/+0
2012-03-01callcatcher: update listCaolán McNamara1-1/+0
2012-02-24unusedcode.easy: OwnerLock includes this featureThomas Arnhold1-1/+0
2012-02-24unusedcode.easy: Remove SotFactory::TestInvariant()Thomas Arnhold3-104/+0
Also CALL_TEST_INVARIANT is never used again.
2012-02-07sot: Delete FileList::GetFormat as it is no longer usedGreg Kroah-Hartman1-4/+0
2012-01-23make sot ByteString freeCaolán McNamara2-7/+7
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann1-44/+44
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2011-12-09callcatcher: remove unused code post automation removalCaolán McNamara1-0/+4