/stlport/

distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xestring.hxx
AgeCommit message (Collapse)Author
2024-10-19tdf#158460 xls/x export: don't force wrap-text for imported single-lineJustin Luth
Starting in LO 24.2, we started displaying imported XLS/X files that had contents-with-newlines on a single line if the cell did not have the wrap-text property - just like buggy Excel. So, now we need to round-trip that without setting wrap-text, so that we can continue to exhibit buggy behaviour (instead of fixing the document so that the newlines aren't ignored). A previous attempt to do this was reverted (for many reasons), significantly because it failed to handle the situation where a user entered new newline content (without forcing wrap-text). So in LO the new content DISPLAYS on multiple lines, but after a round-trip it was all squashed together. So it is important to keep the traditional behaviour of forcing wrap-text, and ONLY avoiding it when round-tripping imported content. It also preserves ODS -> XLS/X conversions. I also took the opportunity to rename mbWrapped. make CppunitTest_sc_subsequent_export_test3 \ CPPUNIT_TEST_NAME=testPreserveTextWhitespace2XLSX Change-Id: Ia35b0679946b51626fabd4043779c1b43cc1ae37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174436 Reviewed-by: Justin Luth <jluth@mail.com> Tested-by: Jenkins
2022-03-18tdf#133603 remove some string copyingNoel Grandin
Change-Id: I5b9f011d276ec30a50648e7984862b9e5f4b5577 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131729 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-03-23tdf#124176 Use pragma once in s*Vincent LE GARREC
sc, scaddins, sccomp, scripting Change-Id: Ia99fec9e238033821cb784810edd4762c09bd5db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112049 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
...for LIBO_INTERNAL_ONLY. These had been missed by 1b43cceaea2084a0489db68cd0113508f34b6643 "Make many OUString functions take std::u16string_view parameters" because they did not match the multi-overload pattern that was addressed there, but they nevertheless benefit from being changed just as well (witness e.g. the various resulting changes from copy() to subView()). This showed a conversion from OStringChar to std::string_view to be missing (while the corresponding conversion form OUStringChar to std::u16string_view was already present). The improvement to loplugin:stringadd became necessary to fix > [CPT] compilerplugins/clang/test/stringadd.cxx > error: 'error' diagnostics expected but not seen: > File ~/lo/core/compilerplugins/clang/test/stringadd.cxx Line 43 (directive at ~/lo/core/compilerplugins/clang/test/stringadd.cxx:42): simplify by merging with the preceding assignment [loplugin:stringadd] > File ~/lo/core/compilerplugins/clang/test/stringadd.cxx Line 61 (directive at ~/lo/core/compilerplugins/clang/test/stringadd.cxx:60): simplify by merging with the preceding assignment [loplugin:stringadd] > 2 errors generated. Change-Id: Ie40de0616a66e60e289c1af0ca60aed6f9ecc279 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107602 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-11-27tdf#42949 Fix new IWYU warnings in directory sc/Gabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I217817e2e4a42b096f5a7fb6344568c10d69aab2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106078 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-12-22sal_Char->char in scNoel Grandin
Change-Id: I7e212a36898e71b03db88053647bfeee12a49cb5 Reviewed-on: https://gerrit.libreoffice.org/85690 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>