summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-09-02doc para property ranges cannot be 0 lengthCaolán McNamara
Change-Id: If946204873343d8bbc0c1d391ca2c65d8b2f8561
2015-09-02-Wundefined-bool-conversionCaolán McNamara
'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion] Change-Id: Iafffb9ea81387ea19fb9c0a4c6ba929215ace3fa
2015-09-02hinter: 'after' better than 'behind'Caolán McNamara
"'Behind' is typically used when the context has meanings of depth, and as such becomes ambiguous when used in a flat list ... 'After'/'before' contain meanings of ordering which are unambiguous" Change-Id: I1b59c7e3fe5773b88e8e7b9a01cefb28e4851090
2015-09-02detect if new offsets are the same as the previous ones and avoid loopCaolán McNamara
Change-Id: I4c53d4bce9a69d79e34bdd634c296d9b495e1904
2015-09-02SetXXX(bool) with a default value of false are just wrongNoel Grandin
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671 Reviewed-on: https://gerrit.libreoffice.org/18235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-02sw: use std::unique_ptr<> in swnewtableMiklos Vajna
Change-Id: Iddc51cd927fa4e2e44c094909892102158f07389
2015-09-01sw: remove a silly 16bit castMichael Stahl
Change-Id: I20eb3379838c5255ff47882b6693908b5971653f
2015-09-01sw: convert boost::ptr_vector to std::vector<std::unique_ptr>Michael Stahl
Change-Id: I846180641279b19f6bd4ac14c3e840e0bec4ded5
2015-09-01sw: sort includes in editsh.hxxMichael Stahl
Change-Id: I74181ccf42e86bc6b65056199e6102bc05518a34
2015-09-01sw: replace boost::ptr_vector with std::vectorMichael Stahl
Change-Id: Iad91811a0e674b3541d51f3e94a9a5770bfda0a1
2015-09-01switch to 64-bit checksum: now BitmapChecksum is a sal_uInt64Marco Cecchetti
Changed hardcoded checksum value in ooxmlimport unit test (testN777345). Change-Id: Ied43bf626be82c0e7f6c62e965d0704fc645ac19
2015-09-01Added support for computing 64-bit checksum of bitmap in OpenGLMarco Cecchetti
Added a C++ and a GLSL implementation of a 64-bit CRC algorithm. Changed hardcoded checksum value in ooxmlimport unit test (testN777345). Change-Id: I16bb985a14866775efda49e21fe033ff64645896
2015-09-01Make saving the default fonts work againMaxim Monastirsky
This reverts part of 745c7bce5fe8b218f7d300667a5409bc7ef58c34. The current behavior of affecting only the current document is useless, given that the same can be done by editing the corresponding styles. Actually I'm pretty sure that's why the wiki flagged the "Current document only" option as unnecessary. So let's go back to saving for all documents. Change-Id: I7ed9609bc93ae519ac89a6e6080a3b37b09633d8
2015-09-01WaE: loplugin:staticmethods in the non-Java caseTor Lillqvist
Change-Id: Ibebe470d0d0c00bfcaf7b3cb90aa102e8101b7bc
2015-09-01SwViewShell::ImplEndAction: still paint directly when non-double-bufferingMiklos Vajna
It turns out that in this case it hurts performance if we go via invaliation-then-paint instead of direct painting when double-buffering is not enabled. Related commits: - beb4aa21d61f0d66392d596be86fb57b4b167239 (SwViewShell::ImplEndAction: avoid direct paint, 2015-06-29) and c9175a1bd3249ad573ae6827bf19963a3ebe2fbc (SwViewShell::ImplEndAction: avoid direct PaintDesktop(), 2015-07-03) globally avoided direct paints - 222f10e773ba51a19880be1b798990260c198147 (tdf#93096 sw: fix selection with keyboard outside current view, 2015-08-18) restored direct paint when non-double-buffering for the second commit, this one does the same for the first Change-Id: Ida0c6917a8cdec74209bd64813c7876d4fa61b8a
2015-09-01add EDB-38031 test caseCaolán McNamara
Change-Id: Idb24848ecd15d3970cdec3e080eb0f8ead0358ed
2015-09-01-fsanitize=enumStephan Bergmann
...as happens in CppunitTest_sw_filters_test with sw/qa/core/data/ww8/pass/CVE-2015-2467-1.doc, first at: > filter/source/msfilter/msdffimp.cxx:1477:17: runtime error: load of value 8193, which is not a valid value for type 'MSO_Anchor' > DffPropertyReader::ApplyCustomShapeTextAttributes(SfxItemSet&) const filter/source/msfilter/msdffimp.cxx:1477:17 > DffPropertyReader::ApplyAttributes(SvStream&, SfxItemSet&, DffObjData&) const filter/source/msfilter/msdffimp.cxx:2694:9 > SvxMSDffManager::ImportShape(DffRecordHeader const&, SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4332:21 > SvxMSDffManager::ImportGroup(DffRecordHeader const&, SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4119:39 > SvxMSDffManager::ImportGroup(DffRecordHeader const&, SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4106:39 > SvxMSDffManager::ImportGroup(DffRecordHeader const&, SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4106:39 > SvxMSDffManager::ImportGroup(DffRecordHeader const&, SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4106:39 > SvxMSDffManager::ImportObj(SvStream&, void*, Rectangle&, Rectangle const&, int, int*) filter/source/msfilter/msdffimp.cxx:4033:16 > SvxMSDffManager::GetShape(unsigned long, SdrObject*&, SvxMSDffImportData&) filter/source/msfilter/msdffimp.cxx:6210:23 > SwWW8ImplReader::Read_GrafLayer(long) sw/source/filter/ww8/ww8graf.cxx:2502:17 > SwWW8ImplReader::ReadChar(long, long) sw/source/filter/ww8/ww8par.cxx:3634:17 > SwWW8ImplReader::ReadChars(int&, int, long, long) sw/source/filter/ww8/ww8par.cxx:3436:27 > SwWW8ImplReader::ReadText(int, int, ManTypes) sw/source/filter/ww8/ww8par.cxx:3974:22 > SwWW8ImplReader::CoreLoad(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:5175:9 > SwWW8ImplReader::LoadThroughDecryption(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:5773:19 > SwWW8ImplReader::LoadDoc(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:6045:19 > WW8Reader::Read(SwDoc&, rtl::OUString const&, SwPaM&, rtl::OUString const&) sw/source/filter/ww8/ww8par.cxx:6167:20 > SwReader::Read(Reader const&) sw/source/filter/basflt/shellio.cxx:175:18 > SwDocShell::ConvertFrom(SfxMedium&) sw/source/uibase/app/docsh.cxx:258:22 > SfxObjectShell::DoLoad(SfxMedium*) sfx2/source/doc/objstor.cxx:790:23 > SwFiltersTest::filter(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) sw/qa/core/filters-test.cxx:112:20 Change-Id: Iafc548b5ba21a985521790770732f7f03e2485c9
2015-09-01-fsanitize=nullStephan Bergmann
...as happens in CppunitTest_sw_filters_test with sw/qa/core/data/ww8/pass/CVE-2015-2431-1.doc: > sw/source/filter/ww8/ww8par4.cxx:294:76: runtime error: reference binding to null pointer of type 'const SfxItemSet' > SwWW8ImplReader::ImportOle(Graphic const*, SfxItemSet const*, SfxItemSet const*, Rectangle const&) sw/source/filter/ww8/ww8par4.cxx:294:23 > SwWW8ImplReader::ReadChar(long, long) sw/source/filter/ww8/ww8par.cxx:3611:35 > SwWW8ImplReader::ReadChars(int&, int, long, long) sw/source/filter/ww8/ww8par.cxx:3436:27 > SwWW8ImplReader::ReadText(int, int, ManTypes) sw/source/filter/ww8/ww8par.cxx:3974:22 > SwWW8ImplReader::CoreLoad(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:5175:9 > SwWW8ImplReader::LoadThroughDecryption(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:5773:19 > SwWW8ImplReader::LoadDoc(WW8Glossary*) sw/source/filter/ww8/ww8par.cxx:6045:19 > WW8Reader::Read(SwDoc&, rtl::OUString const&, SwPaM&, rtl::OUString const&) sw/source/filter/ww8/ww8par.cxx:6167:20 > SwReader::Read(Reader const&) sw/source/filter/basflt/shellio.cxx:175:18 > SwDocShell::ConvertFrom(SfxMedium&) sw/source/uibase/app/docsh.cxx:258:22 > SfxObjectShell::DoLoad(SfxMedium*) sfx2/source/doc/objstor.cxx:790:23 > SwFiltersTest::filter(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags, SotClipboardFormatId, unsigned int, bool) sw/qa/core/filters-test.cxx:112:20 Change-Id: I4482bc5d8e0c2646e7c8667a231a78311b557e89
2015-09-01sw: use std::unique_ptr<> in dbinsdlgMiklos Vajna
Change-Id: If882d49c3abe236c8ca5af502a38947b98e34d5e
2015-08-31sw: convert boost::ptr_vector to std::vector<std::unique_ptr>Michael Stahl
Change-Id: I7fc96e3b7754bb3f4718f9142c75ee82aef0a22c
2015-08-31check for over long record len and check readsCaolán McNamara
Change-Id: Ib77ce1b95db2dc4396f4fd2fdcff4c0344b20c9e
2015-08-31check for ridiculous lengths and check stream statusCaolán McNamara
Change-Id: Iefe943794e005f03b2a6ea5fc642b8c3d21b3334
2015-08-31convert Link<> to typedNoel Grandin
Change-Id: I22f995b905e7abf1451a0636083bf19b3f2d9bc4
2015-08-31convert Link<> to typedNoel Grandin
and remove some dead code Change-Id: I6a42dbaea5053b4aa3c47b3f154410b05f32dfe4
2015-08-31convert Link<> to typedNoel Grandin
Change-Id: I53b0a7a9875a3ebcca915c8f2d8c53face6f9509
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
Change-Id: Ib63853954af0b95d4258abff789b85969972982c
2015-08-29o3tl/cow_wrapper: remove boost dependencyDaniel Robertson
Remove boost dependencies from ::o3tl::cow_wrapper, and add the necessary includes to files including checked_delete and noncopyable that do not already include the necessary files. Change-Id: Iedae4232002792724226829a5d5cf9d16ffd0686 Reviewed-on: https://gerrit.libreoffice.org/18125 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-29XOutBitmap::GraphicToBase64 can return boolMatteo Casalin
instead of a sal_uLong error code, which no call place cares about Change-Id: I0d0dd16859e2f9678f47f484edf933e165b1ca48
2015-08-29Unuseful temporary variableMatteo Casalin
Change-Id: I926a69fa32b284475927e21f98f49330dde6d5b0
2015-08-29sal_uLong to sal_uInt32 for CRC32Matteo Casalin
Change-Id: Id13e07f479615b8eb39d05e6534f514277cc3d03
2015-08-29Bin include file with unused stuffTor Lillqvist
Change-Id: I6c4b78a673183252604da0fe2deff6e4a2fa60d6
2015-08-28add CVE-2014-6364 test caseCaolán McNamara
Change-Id: I2c47d5b622a54cbfd91b0037f03113c87104da67
2015-08-28add CVE-2014-6356 test caseCaolán McNamara
Change-Id: I59ba2c81066182f7cecd24f26b63633fd6309f92
2015-08-28add CVE-2014-6357 test caseCaolán McNamara
Change-Id: Ie52195ef8bef45fae66f58d00dd1566ce5605a9f
2015-08-28add CVE-2015-0086 test caseCaolán McNamara
Change-Id: Id82b199f4d182132e9dce5aca81298ecd37116df
2015-08-28add CVE-2015-1651 test caseCaolán McNamara
Change-Id: I166dcb1fd9653dc9bfe9d737ea570c328186f11d
2015-08-28add CVE-2015-2380-1.doc test caseCaolán McNamara
Change-Id: I94afaee6aeedd80feb1fa2078bc12e04de0db4ab
2015-08-28add CVE-2015-2467 test caseCaolán McNamara
Change-Id: Ia1196732bc1920be54e2e6dec51ddf6deb855e29
2015-08-28add test case for CVE-2015-2431Caolán McNamara
Change-Id: I88e3b21d9b7f772eb16a454d0c3a369a92fa3739
2015-08-28tdf#93353: fix copy fluy in flyBjoern Michaelsen
- prevents flys in inlcuded docs in a master doc from disappearing - fixes a regression from 3fcb0c3aa8d58a819aa21eb9743eaa6da7394819 Change-Id: If211d8dbf423e2a33a258b43ab7092e1a010206f
2015-08-28add EBD-37910-1 test caseCaolán McNamara
Change-Id: I45033100a39d3bc57bc9c72cb33952531808f069
2015-08-28tdf#93449 Internal hyperlinks are not exported corectly in HTMLVasily Melenchuk
InetURLObject class does not work correctly with internal document links, containing not full url, but just a fragment. This case added as an exception for HTML link export. Change-Id: I44496a1cf186836d4194fc65ce7bf9aeb2f79b65 Reviewed-on: https://gerrit.libreoffice.org/17993 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-28make PostUserEvent Link<> typedNoel Grandin
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
2015-08-27loplugin:loopvartoosmallStephan Bergmann
Change-Id: Ia13b26f937f4e18c895b278ee3032ae3771a9259
2015-08-27Improving Asian phonetic guide for docx and rtf files.Mark Hung
RTF import, export, and ooxml export for ruby text are implemented. tdf#49073 - FILEOPEN: Furigana (ruby text) and characters with them are missing in opened .docx files. tdf#50786 - [TASK, METABUG] FILEOPEN, FILESAVE, FORMATTING : Japanese ruby-character handling is broken Change-Id: I4a5c30bad180241e3344e9da7efe7da4369fb325 Reviewed-on: https://gerrit.libreoffice.org/17241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-08-27Addition of new controls to Wrap sidebar tab in WriterRishabh Kumar
Addition of Enable Contour and Edit Contour button to the sidebar Change-Id: I9cadbcc9643b9fc87b3dbe3a9a2355cd674d1e53 Reviewed-on: https://gerrit.libreoffice.org/17324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-08-27loplugin:staticmethodsStephan Bergmann
Change-Id: I262a9e75ec20fad15b550b84989fd7acc118c53a
2015-08-27loplugin:staticmethodsStephan Bergmann
Change-Id: I8ccaf0e8eea9c47257561e66114972bebf16e3af
2015-08-27loplugin:staticcallStephan Bergmann
Change-Id: I0d67b6c155d44e9c9072ef7c3519850c45a51313
2015-08-27loplugin:passstuffbyrefStephan Bergmann
Change-Id: I000a8fbfec9c81a61773b5db24b5a7b6c708dc06