Commit Graph

414496 Commits

Author SHA1 Message Date
Caolán McNamara
4c1bfd35ae ofz#3816 Integer-overflow
Change-Id: I899df8d0609d6a3c55d130cffc5b1b23eebece13
2017-10-26 19:48:38 +01:00
Noel Grandin
91f11350ed rename createOnShotInstance->createOneShotInstance
Change-Id: I8848784cd867714019f90bb7fc57ca7289e51f81
Reviewed-on: https://gerrit.libreoffice.org/43873
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 20:47:12 +02:00
Patrick Jaap
e06807f51d tdf#31814 EMF/EMF+ implement dual mode
There can be a dual mode flag set in the EMF+ data. If set,
we should process either EMF or EMF+ data, because the contained
information should be equal (says the documentation).
The more advanced EMF+ renderer is chosen here.

The flag is read in the EMFPlusReader and blocks the reading of other
EMF records than HEADER, EOF and COMMENT.

Thanks to Chris, for pointing out the dual mode!

Change-Id: I8522930cebbb9e9ecc732397cbb3deea9e8c9127
Reviewed-on: https://gerrit.libreoffice.org/43122
Reviewed-by: Patrick Jaap <patrick.jaap@tu-dresden.de>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Tested-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 20:18:52 +02:00
Caolán McNamara
334cc99139 ofz#3820 Integer-overflow
Change-Id: I620b0278273e285100fe44d252389e6393a2022c
Reviewed-on: https://gerrit.libreoffice.org/43877
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-26 19:21:22 +02:00
Caolán McNamara
d97f0ceb43 ofz#3793 Divide-by-zero
Change-Id: Ica00209bc6679edaa0c83fc7d31bd5d4653b5e96
Reviewed-on: https://gerrit.libreoffice.org/43879
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-26 19:17:49 +02:00
Stephan Bergmann
b1fa5e7a2c cid#1420316: Try silence CONSTANT_EXPRESSION_RESULT
(or does the comment need to go exactly at the line before the one containing
the "return" token?)

Change-Id: I5f92e59ee05d0b5ba3d6bda775e6ca02f185dbe8
2017-10-26 19:06:41 +02:00
jan Iversen
fb62c2c525 iOS added menu entries
Added Copy/Move/Delete since this is the only way to access
the local storage.

Change-Id: I9b054a4f23d32d5220ae500a37b52cb7e7a8587c
2017-10-26 18:56:43 +02:00
jan Iversen
7982119334 iOS added select local/iCloud storage
Added button in Document window, to signal if working local or in iCloud

Change-Id: Ib33b67c95dfad466664e2289390ea577ba5e3391
2017-10-26 18:56:42 +02:00
Stephan Bergmann
25313923b0 Fix CppunitTest_services for constructor-based implementations...
(i.e., using constructor="..." in the .component file) that implement multiple
services, but are not implemented as single-instance objects (i.e., always
return different objects from that constructor function).  In that case, the
"factory" would be the object itself, and would thus be different for different
instantiations of that implementation.  erAck ran into such a case with new code
he's writing.

Change-Id: Ib134a4c6d1400b43a7df3cf6a115f8206fb80c93
2017-10-26 18:26:02 +02:00
Mark Hung
4e5123fc59 tdf#77961 regard layout-grid-print as off when missing.
Change-Id: I8404ebed8ba84ee83528310ee63f796356674553
Reviewed-on: https://gerrit.libreoffice.org/43830
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
2017-10-26 17:32:53 +02:00
Jim Raykowski
d4064927a2 tdf#111846 Find & Replace: Rename diacritics and kashida options
Change-Id: I1657b84d613b28d5762057954069d2a2fe2e3ab2
Reviewed-on: https://gerrit.libreoffice.org/43103
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-10-26 17:24:26 +02:00
Noel Grandin
02a3abccee array_view std::hash override should be const
Change-Id: I8ffdf86e98e261b337cfa81b1be0cb64539c9a9c
Reviewed-on: https://gerrit.libreoffice.org/43871
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 15:47:12 +02:00
Stephan Bergmann
ade8521657 Fix o3tl::saturating_add for negative b
Change-Id: I665f6c2f94b6c03d6fb5136fff3054ad6f0ca962
2017-10-26 15:33:40 +02:00
Szymon Kłos
d556c282aa Fix build on linux without cups
Change-Id: Ibd89fd25ca8dd43aa5f8fa4ba8ab15eb6eb042cc
Reviewed-on: https://gerrit.libreoffice.org/43220
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 15:11:43 +02:00
heiko tietze
c3afd99701 tdf#103317 Update of Impress templates
Blueprint_Plans, Portfolio, Progress added, Vintage updated, LushGreen, Pencil deleted

Change-Id: I9b11fc63378486b70f264cf715e3f3ba177e165f
Reviewed-on: https://gerrit.libreoffice.org/43887
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-10-26 15:01:46 +02:00
Jean-Pierre Ledure
86a773cd43 Access2Base - Database events
Introduce 21 database On... events returning the invoked scripts
Read-only
2017-10-26 13:28:15 +02:00
Thorsten Behrens
16598d526e gpg4libre: enable OpenPGP support for Mac
Change-Id: Iad7d6b045be90efb32da3ffb1c19753b58b1753d
Reviewed-on: https://gerrit.libreoffice.org/43616
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-10-26 12:55:48 +02:00
Noel Grandin
db04585533 loplugin:constmethod in basegfx,sot
Change-Id: I05d2cdefb7faf489ec29ba28dc5e3c28d08b9780
Reviewed-on: https://gerrit.libreoffice.org/43863
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 12:44:44 +02:00
Justin Luth
0186878376 related tdf#78508 and n#793262: import w:tcMar_start/end
Although 2013 commit 60ec497e0e
added support for the other tcMar items, it omitted _start and
_end (perhaps because they caused unit test failures).
The document in bug 78508 proves that these are needed.

Testing whether the cell spacing matches the default table
spacing should occur before adjusting for MSO compatibility.
This fixes the three unit tests that mysteriously failed
when adding _start/_end support.

Unfortunately, these two fixes could not be committed
separately - the unit test fails unless both parts
are included. I couldn't figure out why.

Change-Id: I9507da48b629b9618c5ee790bf0088ce82fc5692
Reviewed-on: https://gerrit.libreoffice.org/43432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-26 12:21:13 +02:00
Miklos Vajna
f2fa344033 vcl: minor cleanups in pdfdocument
Change-Id: Ib1284b819d4af2e8055698be4160bbb41acba851
Reviewed-on: https://gerrit.libreoffice.org/43866
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-26 12:19:35 +02:00
Noel Grandin
b9fd0d1c42 loplugin:constmethod in svl
Change-Id: If92869e19c413e11f1f299a97f96b9637aaba65d
Reviewed-on: https://gerrit.libreoffice.org/43864
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 11:43:40 +02:00
Noel Grandin
d9b6f4fd38 loplugin:constmethods in unotools
Change-Id: I13df4e184a826682f34a1d9e974b601397ba4a3d
Reviewed-on: https://gerrit.libreoffice.org/43865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 10:59:42 +02:00
Stephan Bergmann
084f454e8c More loplugin:unnecessaryparen
81892b2037 "loplugin:unnecessaryparen when
compiling as C++17, so the ParenExpr is no longer hidden behind
ExprWithCleanups/CXXConstructExpr/MaterializedTemporaryExpr wrappers" gave me
the idea to generally look though IgnoreImplicit instead of IngoreImpCasts in
loplugin:unnecessaryparen.  However, that would still not look through implicit
CXXConstructExpr, so would still not have found the occurrences in
81892b2037 when compiling in pre-C++17 mode.
Therefore, let ignoreAllImplicit also look through CXXConstructExpr.  (I am not
entirely sure in which situations non-implicit CXXConstructExpr---that should
thus not be ignored---would occur, but assume they would be underneath something
like a CXXFunctionalCastExpr, which is not ignored.)

Change-Id: I947d08742e1809150ecc34a7abe84cca5e0ce843
2017-10-26 10:27:48 +02:00
Caolán McNamara
7e87403953 drop old SetBufferSize stuff
Change-Id: I16fc145a4d6378b1ca47cdd24caac9a8da913715
Reviewed-on: https://gerrit.libreoffice.org/43854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-26 10:09:29 +02:00
Takeshi Abe
1116d808c7 Use the canonical abbreviation "pc" of pica, instead of "pi"
like as fixed at 8a5b178eb9.
This change affects e.g. the string of the tooltip appearing
when changing document margin in Writer by dragging ruler,
after choosing pica as the unit in context menu.

Change-Id: I55d2cea8b30016e2578c6a112f54e26d62741b44
Reviewed-on: https://gerrit.libreoffice.org/43819
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-10-26 10:02:07 +02:00
Tor Lillqvist
fa3522a1ad Don't pointlessly abbreviate "First" and "Second"
Change-Id: I7b446f9eed6cf00c605d1cdb8a84273d0ea6628e
2017-10-26 10:23:26 +03:00
Miklos Vajna
cb8b20ab3a tdf#113445 sw: avoid hitting loop control with a dozen of in-table sections
The bugdoc has an (outer) table containing a single cell, which has an
(inner) table with 12 cells, all content is inside sections, one section
/ cell.

This relatively simple setup can already hit the loop control in
lcl_RecalcRow(), as the SwLayNotify dtor always does invalidation in an
async way, so the loop control's counter is incremented after each and
every table cell.

Instead of increasing the max tolerance in lcl_RecalcRow() (one can
easily construct a document where the bug is still there even if the max
is set to 100 instead of the current 10 iterations), just calculate the
lower synchronously.

Change-Id: Ifbffe13e5f2f237e1578bdd3e17d4d8b7c34806d
Reviewed-on: https://gerrit.libreoffice.org/43848
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-26 09:04:12 +02:00
Julien Nabet
aded98ce3d Refactor font substitute removing (vcl/svtools)
+ replace list by vector for maFontSubstList

Change-Id: I4d5668611212358c759fa5cf26f5341311551298
Reviewed-on: https://gerrit.libreoffice.org/43855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 08:55:23 +02:00
Takeshi Abe
4130a5c4b0 Fix memory leak
Change-Id: I2638a8440601264ff00221ead28a71c891abae16
Reviewed-on: https://gerrit.libreoffice.org/43860
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 08:53:41 +02:00
Noel Grandin
b4e235a925 loplugin:finalclasses in sd
Change-Id: I0947aa295ba1859ebc1e7ce9ce2e621f02d399ce
Reviewed-on: https://gerrit.libreoffice.org/43846
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-26 08:47:11 +02:00
Bernhard Widl
cb151051d7 tdf#113444 removed capping of default font size
Change-Id: Ic2ef7eeea7dd9306b57d55952ab716d6255f9576
Reviewed-on: https://gerrit.libreoffice.org/43605
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-26 08:43:10 +02:00
Bartosz Kosiorek
08a690cf66 tdf#111486 Fix description of SAL_ macros after EMF+ refactor
Change-Id: If235956228d7f807817d9ffff3da652bd6485ffa
Reviewed-on: https://gerrit.libreoffice.org/43834
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 08:41:01 +02:00
Szymon Kłos
9ae1e094d5 PPTX export: correct position of rotated groups
* added testcase for tdf#113263

Change-Id: I7abf68d8fb4ffd8b883cfbf4d69916912add8182
Reviewed-on: https://gerrit.libreoffice.org/43794
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2017-10-26 08:02:13 +02:00
Julien Nabet
f4df7d2df5 Simplify and remove useless aRemovePrinters list (vcl)
Change-Id: I33120b62b114bbac62752888301e62268f45768c
Reviewed-on: https://gerrit.libreoffice.org/43852
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-26 07:28:00 +02:00
Yousuf Philips
51e2dc5139 tdf#107569 Tango: Fix missing icons in Writer menu bar (part 2)
Change-Id: I59f5511724da6beccc398080144a23e80652b26f
Reviewed-on: https://gerrit.libreoffice.org/43785
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2017-10-26 03:14:15 +02:00
Yousuf Philips
c566b78de5 tdf#107569 Tango: Fix missing icons in Writer menu bar
Change-Id: Iedf372749b6d025f67b4b1c9265ef89a05f82617
Reviewed-on: https://gerrit.libreoffice.org/43729
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2017-10-26 03:13:19 +02:00
Yousuf Philips
91c8acaacf tdf#81475 tdf#113434 improve drawing object toolbar
Change-Id: I07782dcaa41da792bb6db13ad49b7e9f79886d4b
Reviewed-on: https://gerrit.libreoffice.org/43828
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2017-10-26 03:12:13 +02:00
Bán Róbert
7e03c4eed7 cpp check, fix redundantAssignment
Change-Id: I7cf826ecae59f501e1a240840d3ba186f2c65ed6
Reviewed-on: https://gerrit.libreoffice.org/43839
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-10-26 01:31:57 +02:00
Kristóf Umann
06065b57de Resolved a redundant assignment
Change-Id: I9d65f4b2a444a12c03f0ec009baeadc131045e98
Reviewed-on: https://gerrit.libreoffice.org/43832
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-10-26 01:29:16 +02:00
Xisco Fauli
dd0bc73230 tdf#109343 Fix paste as .RTF on Mac
Change-Id: Ida0433437301ea2803373e534df3d42f67d6aff8
Reviewed-on: https://gerrit.libreoffice.org/43513
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 00:53:49 +02:00
Juergen Funk
c709166879 Intergate new Win-SDK 10.0.16299.0
Change-Id: Ie0387fdb7fa5850d796d825e767119b90ae85d95
Reviewed-on: https://gerrit.libreoffice.org/43422
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 00:50:48 +02:00
Thomas Beck
c1cf755afe tdf#108947 - Fixed regression
Handled Header/Footer that are specifically for Left/Right pages the old
way again. Fix done previously was too much.

Change-Id: I0f9e8d23022300a06bd3fb45054cca1b03cf096f
Reviewed-on: https://gerrit.libreoffice.org/43749
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2017-10-26 00:48:36 +02:00
Gábor Koruhely
80578036e8 cpp check, fix redundantAssignment
Change-Id: I26d8353461d938e327baecf1ca0f529da45eb069
Reviewed-on: https://gerrit.libreoffice.org/43833
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-25 23:32:49 +02:00
Caolán McNamara
5114545da6 no matching overload found
Change-Id: I6d494a8a93ff2997aac5cb7ea57f3132dac469b7
2017-10-25 21:07:14 +01:00
Caolán McNamara
8a79965551 no matching overload found
Change-Id: I0e1d28c6ee3e95a28e4b66c49de75fcbf9ca65fe
2017-10-25 20:51:41 +01:00
Caolán McNamara
d754330e05 ofz#3789 Integer-overflow
with input 69e9223372036854775807

Change-Id: Iaf5a85170d144be2db5604340d784a8982754e08
Reviewed-on: https://gerrit.libreoffice.org/43815
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-25 21:34:18 +02:00
Caolán McNamara
713fb4a8d3 ofz#3786 Integer-overflow
Change-Id: I2f9b404ad5529842b40439e24e35aa5ab9b69531
Reviewed-on: https://gerrit.libreoffice.org/43840
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-25 21:33:54 +02:00
Caolán McNamara
db4d4bac22 ofz#3801 Divide-by-zero
Change-Id: Ibb2f3e5508899541bc201240a7e9d5f26c750fa5
Reviewed-on: https://gerrit.libreoffice.org/43843
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-25 21:33:19 +02:00
Caolán McNamara
933b66c122 ofz Integer-overflow
Change-Id: I12d0d5d33be273d85822883598c20c793bceb706
Reviewed-on: https://gerrit.libreoffice.org/43845
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-25 21:32:57 +02:00
Caolán McNamara
438e8b846f ofz Integer-overflow
Change-Id: If78466f091c55279b21aaa936a4b77e665530aa5
Reviewed-on: https://gerrit.libreoffice.org/43849
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-25 21:32:09 +02:00