Commit Graph

415054 Commits

Author SHA1 Message Date
Stephan Bergmann
b35bb38f18 Clean away temporarily added using declarations
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
2017-11-07 11:50:47 +01:00
Stephan Bergmann
07b8711526 Memoize ignoreLocation results
...which, according to callgrind, reduces instruction fetch count spent on
compiling sw/source/core/layout/paintfrm.cxx (randomly selected because it is
rather large) by 5% from 41,992,064,226 to 39,861,989,855 (function main() in
clang-6.0).

This is best done by forwarding ignoreLocation calls from Plugin to the
PluginHandler signleton, but due to the tight mutual coupling between plugin.hxx
and pluginhandler.hxx that unfortunately required some reorganization (and two
outstanding TODO clean-ups of temporarily introduced using declarations in
plugin.hxx).

Change-Id: Ia4270517d194def7db7ed80cb6894e9c473e9499
2017-11-07 11:19:30 +01:00
Miklos Vajna
3a32caa141 test: avoid 'using namespace' declarations in a header
Change-Id: I8dc06129360124fcaa52bc13bb9d134918b84c17
2017-11-07 10:47:43 +01:00
Miklos Vajna
5946eedfb7 test: clang-format recently added xsheet tests
Jens says he was unhappy with the 80 cols limit, so clang-format was
explicitly avoided for these new files, but now that the both the config
and TEMPLATE.SOURCECODE.HEADER says 100, it's fine to reformat these to
enforce consistency from now on.

Change-Id: Ia6f0a65920ad2c9d7b0834a0712356568c39624e
2017-11-07 10:47:35 +01:00
Miklos Vajna
9d2baccabe Adapt clang-format blacklist to recent renames
Change-Id: I5e2e431900af9ea7de7dd9395af038ba2f8f7e0c
2017-11-07 10:47:28 +01:00
Miklos Vajna
5f4a3e7bd7 tdf#113550 RTF import: fix incorrect text indent
Left indent was set to non-zero in the style, but direct formatting set
it back to zero. Teach deduplication to remove the
NS_ooxml::LN_CT_PPrBase_ind SPRM itself in case the last attribute was
removed.

Change-Id: I01b202f0241b02816b2b392326737b1150caffc2
Reviewed-on: https://gerrit.libreoffice.org/44385
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-11-07 10:42:03 +01:00
Noel Grandin
ded02dafbc loplugin:finalclasses in connectivity
Change-Id: I0cd075efad83c0a8d6f05c91201a9aa86649590b
Reviewed-on: https://gerrit.libreoffice.org/44386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-07 10:35:19 +01:00
Jan-Marek Glogowski
52abd40ce8 Fix memory leak for skipped Sal user events
User SalEvents allocate an ImplSVEvent data structure, which must
be freed in DispatchUserEvents, if it's skipped.

Change-Id: I17874f06a2da996b6546b14dd886061e3e81f35c
Reviewed-on: https://gerrit.libreoffice.org/44370
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-07 10:34:43 +01:00
Jim Raykowski
33021ea5c6 tdf#112435 Scroll to navigated position
Force scroll to position of navigation when navigating to
inactive document using Navigator.

Change-Id: I8671973f5fdb5f4158a7795bf0b3381db867d57a
Reviewed-on: https://gerrit.libreoffice.org/44330
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-11-07 10:26:16 +01:00
Stephan Bergmann
19f0190072 loplugin:unnecessaryparen
Change-Id: Icb5dacd41bc5753ffa2498fdd244b1f78483699f
2017-11-07 10:04:50 +01:00
Stephan Bergmann
e6f40de5fc loplugin:flatten
Change-Id: Id43a9752ff21258296e56c8dc765c3618d360c7a
2017-11-07 10:04:49 +01:00
Stephan Bergmann
f8798dcb2a loplugin:includeform: automatic rewrite in --with-webdav=serf code
Change-Id: Ida1b0c2942071d5ee8a25dd1817e8608761732ac
2017-11-07 10:04:49 +01:00
Caolán McNamara
c96c7c8b6b add 1-2-3 wks to fftester
Change-Id: I4deb6831a809d516d286a90903b7b89c8e07b2b0
Reviewed-on: https://gerrit.libreoffice.org/44367
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-07 10:02:50 +01:00
Caolán McNamara
b4f43c0917 ofz#3577 Timeout
little speculative given https://github.com/google/oss-fuzz/issues/960

Change-Id: Ie844ebdd1e693ce8589fba9b7370d55914d844a7
Reviewed-on: https://gerrit.libreoffice.org/44377
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-07 10:02:22 +01:00
Stephan Bergmann
2bea600f02 external/lcms2: Stop warnings/errors about "register"
...when workdir/UnpackedTarball/lcms2/include/lcms2.h is included from
workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_colorspace.cpp
(Library_pdfium).  Even with -std=gnu++17, GCC only emits a warning (that is not
promoted to an error when building external Library_pdfium) about "register",
but at least recent trunk Clang does emit an error by default.  (Clang used to
have a bug by which it failed to emit any warning/error for uses of "register"
on function parameters, but that got recently fixed with
<http://llvm.org/viewvc/llvm-project?view=revision&revision=317140> "Fix missing
-Wregister warning when 'register' is applied to a function parameter", causing
an --enable-werror build failure now when building in C++17 mode with
<https://gerrit.libreoffice.org/#/c/43851/> "Build as C++17 when GCC/Clang
supports it" locally included.)

So instead of trying to further demote any warnings/errors about those uses of
"register", just patch them away for good.

Change-Id: I7c8757e654d87be710eaaafa871300656d9ee8ff
2017-11-07 08:55:41 +01:00
Muhammet Kara
ca34d38983 Remove unnecessary state checks and the variables
Change-Id: I5dffeb9a05195085b6aa503421f65467d0b741a9
Reviewed-on: https://gerrit.libreoffice.org/44375
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-07 07:38:07 +01:00
Noel Grandin
d0a4b17d58 loplugin:finalclasses in cui
Change-Id: I59c148dbc2bfc1dff554efe7e7c974dc557b2aeb
Reviewed-on: https://gerrit.libreoffice.org/44362
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-07 07:36:19 +01:00
Noel Grandin
e2655495d5 convert nDrawingContainerId to sal_uInt16
which is all that can be stored anyhow

Change-Id: Iaec28a97ed25004715accafc0cbd4bd620bfbba9
Reviewed-on: https://gerrit.libreoffice.org/44360
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-07 07:33:05 +01:00
Noel Grandin
4f5469ed0b loplugin:constparams in sw
Change-Id: Ie7aac013db4116aa9bd2caa4fc6b4bfad5cea733
Reviewed-on: https://gerrit.libreoffice.org/44356
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-07 07:32:58 +01:00
Julien Nabet
d0dd80c8af Replace some lists by vectors (sw)
Change-Id: I9fef822040403fc61d00240c07b63e9394cf069f
Reviewed-on: https://gerrit.libreoffice.org/44379
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-07 07:01:58 +01:00
Ashod Nakashian
8c4b480e85 tdf#113619 prevent cores when there is no cursor
Change-Id: I508041b6dca4c4ed5be20d9ff8aa2ae72746e0d7
Reviewed-on: https://gerrit.libreoffice.org/44259
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-11-07 06:18:40 +01:00
Ashod Nakashian
240bf89a52 TSCP: Restore paragraph signature when importing DOC(X)
And wrap getStatements in try/catch, as it can
throw in some cases with nasty consequences.

Change-Id: I19b0d41188e8835ca4308bcef2f05907e98faf3d
Reviewed-on: https://gerrit.libreoffice.org/44258
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-11-07 05:10:54 +01:00
Takeshi Abe
fe7384f7d6 sfx2: Simplify SfxVersionTableDtor's code with std::unique_ptr
Change-Id: I8279f7ae14301f485c2678271939fb6ad72d4721
Reviewed-on: https://gerrit.libreoffice.org/44350
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-11-07 02:02:18 +01:00
heiko tietze
a5af0fd9f2 tdf#101349 Default table styles
Change-Id: Ief8f8e07486dd0a6d61fe12724a4de00f0f47de7
Reviewed-on: https://gerrit.libreoffice.org/44381
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-11-07 00:07:59 +01:00
Andrea Gelmini
38a8157d94 Removed duplicated include
Change-Id: I1d6d4a6ce285e46b3910f5e48b6beb1685460f74
Reviewed-on: https://gerrit.libreoffice.org/44376
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-06 23:28:10 +01:00
Caolán McNamara
133cc249c7 ofz#4072 Integer-overflow
Change-Id: Ib94d4021be86e93e6ed0e836fbab0d8d0ca6f738
Reviewed-on: https://gerrit.libreoffice.org/44346
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-06 22:27:15 +01:00
Mike Kaganski
95d3518718 Use std::initializer_list to construct Sequence
Change-Id: I5b3b97922befbe094c0ebe9adf4f195a83cd24af
Reviewed-on: https://gerrit.libreoffice.org/44365
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-11-06 20:53:03 +01:00
Mike Kaganski
170ff1fb64 ODatabaseContext::loadObjectFromURL: don't parse string for protocol
"vnd.sun.star.pkg:" is already recognized as INetProtocol::VndSunStarPkg
by INetURLObject

Change-Id: I385dfb0f545f81171b1794f2d5d991d8b9f28eaf
Reviewed-on: https://gerrit.libreoffice.org/44355
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-11-06 20:52:36 +01:00
Michael Stahl
cc88a2bcfd sw: read both platform dependent binary table autoformats
The WriterSpecificAutoFormatBlock class actually writes a length
into the file that covers the offending SwFormatVertOrient item.

Put in a gross hack to read either 32-bit or 64-bit in
SwFormatVertOrient::Store depending on that length.

The length also covers another item, so we'll just hope nobody ever
changes this stuff ever again!

Change-Id: Idf2f05cc00c098571508adb849f60940966c3328
Reviewed-on: https://gerrit.libreoffice.org/44254
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-11-06 20:28:57 +01:00
Michael Stahl
b3cfb849b1 tdf#112547 sd: add unit test
Change-Id: If63f004c95208d49743f389746ca430ad91e1231
2017-11-06 20:20:05 +01:00
Regina Henschel
21f61ffeb7 tdf#112547 element p to draw:object, import expects it there
There exists no documents produced by LibreOffice, where text on OLE
objects has worked, because import expects the paragraphs inside the
draw:object element, but LO has written them outside. The patch
changes LO to write the paragraphs inside the draw:object element.
The patch does not enable LibreOffice to read the paragraphs in
old documents. But versions at least since 5.1 will be able to read
text on OLE objects from documents which were produced by versions
with applied patch.

Change-Id: I879135f1a869e46c32361db653ede05227bab95e
Reviewed-on: https://gerrit.libreoffice.org/43696
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-11-06 20:20:21 +01:00
andreas kainz
82957288ea Elementary update icons
Change-Id: Iec921c19336fc87b2fcd4bfe18676ff13b109889
Reviewed-on: https://gerrit.libreoffice.org/44364
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2017-11-06 19:58:42 +01:00
Eike Rathke
efdf57aa44 ofz#4052 limit listener range to actually available sheets
... instead of an arbitrary reference range read from a binary
file format, here 4k sheets resulting in >3GB allocated listener
memory.

Change-Id: I629297f4249fdf16a0ede098b63d9648fda69ac3
2017-11-06 19:40:19 +01:00
Andrea Gelmini
d4dca2b170 Fix typos
Change-Id: Id1cce482a05be3089093ad75d6a30da12084e338
Reviewed-on: https://gerrit.libreoffice.org/44288
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-11-06 18:55:05 +01:00
Caolán McNamara
e4551b905e ofz infinite loop
Change-Id: Iae9faaa86e4b3edb9a1fdfe9c6b67eee211c19a9
Reviewed-on: https://gerrit.libreoffice.org/44361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-06 18:33:02 +01:00
László Németh
f037207675 fix spell checking issues using recent Hunspell patches
Test: English word "Ian" are "item" are not allowed as "İan", "İtem" now.

Patch list with commit ids in Hunspell repository:

commit 66badb7449c2053c89456f11a7f71f3f5916b550
Extend dotless i and dotted I rules to Crimean Tatar language

commit 88cf975c295e3ec808efb77bb1a2a031d77f0c89
Allow dotted I in dictionary, and disable bad capitalization

commit 39b785a6b03b35cc8a27f43f6005dcaa432694e1
FORBIDDENWORD precedes BREAK

commit 0f691abe68788d0a58e72ab66877a9f670cd2741
Remove forbidden words from dash suggestion list

commit 15b2cde4f01706f0a648518a5cfc57394d015448
tdf#95024 fix compound handling for new Hungarian orthography

commit de3ae6844af62300e473f7b7b66a56e54153b4b9
fix compound word part "pa:"

Change-Id: Id12b5629b0c975464072b5b144743cbe40fe45a3
Reviewed-on: https://gerrit.libreoffice.org/44200
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2017-11-06 17:50:04 +01:00
Michael Stahl
a7cd63df37 configure: if there's no fontconfig, assume no fonts are available
No idea how to check what fonts are installed on Windows/Mac;
only safe thing to do is to disable the tests if --without-fonts.

Change-Id: Ia27d866d9964f7e4e1ebfaba7ee4a7ce53b800b0
2017-11-06 17:43:29 +01:00
Michael Stahl
5cf570d1d4 vcl: CppunitTest_vcl_complextext requires DejaVu fonts
The TEST_FONTS_MISSING is already handling the --without-fonts case,
but if we build fonts we need a dependency.

Change-Id: I5164fc5c5974bbce7481b0b1ef4d6013eb9c0a11
2017-11-06 17:37:23 +01:00
Ashod Nakashian
42b21bf33c TSCP: Refactor and simplify paragraph signature helpers
Change-Id: I286c685aad38b850c3b988b7f9ba418092746d66
Reviewed-on: https://gerrit.libreoffice.org/44257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-11-06 17:09:09 +01:00
Jan-Marek Glogowski
3a88795c12 tdf#108748 generate PDF preview on SwapIn
When including a PDF as an image, it's represented internally as
a Bitmap with additional PDF data. On SwapIn, LibreOffice just
imported the PDF data missing the PDF preview. The Graphic also
gad the wrong image type, which results in a busy loop on master,
with a strange / unhelpful STR_COMCORE_READERROR generated by
SwNoTextFrame::PaintPicture.

This is a workaround to generate the Bitmap on SwapIn, which
will really slow down LibreOffice when importing many PDFs.

I guess the job of generating the PDF previews should probably
be deferred to a thread or a low priority Scheduler task, just
like the general image loading is handled.

Change-Id: I8084e4533995ecddc5b03ef19cb0c6a2dbf60ebd
Reviewed-on: https://gerrit.libreoffice.org/43906
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-11-06 15:49:20 +01:00
Caolán McNamara
a4b7c54ea8 add calc rtf fuzzer
Change-Id: I11838f35c9c8ae5d754b129ac0fb30a2ca2b0ab2
Reviewed-on: https://gerrit.libreoffice.org/44201
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-06 15:12:26 +01:00
Andras Timar
cbb9607c60 Updated core
Project: translations  b990191434c16fd9253cfda7854589f41728d836

Updated Slovenian translation

Change-Id: I80f31efc782ed5a46490e70bdc4916b5a2fe8b7f
2017-11-06 13:44:11 +01:00
Johnny_M
872055b5de Translate German variable names in Calc (financial)
As in https://gerrit.libreoffice.org/43987

This is for string literals only. Variables and functions like "nKorrValDecl"
and "GetRmz" will be translated on a separate, later Gerrit change.

Change-Id: I86c163f40bc13c800315f426f5815d141853644b
Reviewed-on: https://gerrit.libreoffice.org/44295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-11-06 13:26:27 +01:00
Samuel Mehrbrodt
193aa63a2a tdf#65393 Test for signature line images
Change-Id: I6f37919da5fef0a90fad314019db19e4a5604169
Reviewed-on: https://gerrit.libreoffice.org/44220
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-11-06 12:17:14 +01:00
Miklos Vajna
b2e888a0cd vcl: fix loplugin:implicitboolconversion warning
Change-Id: I3f84396def32c657f58842647e9af5d4a48e43be
2017-11-06 12:08:27 +01:00
Jan-Marek Glogowski
0b1e8399df QT5 fix build issues & cleanups
1. Linking problem on Windows due to Windows macros via
   <vcl/sysdata.hxx> include
2. Drop the custom MOC target for the old KF5 plugin
3. Correctly handle QT5 build without using QFont
4. ImplJobSetup is in the VL library, not the gen plugin

Change-Id: Iad97b1b9b57a8c356aaa88178aff03d0c14558c7
2017-11-06 12:05:50 +01:00
Thorsten Behrens
e8526657a2 QT5 fixup non-qt5 build
Change-Id: Ifea73d81ba3863fd6a99453cb38303eb729f6ff4
2017-11-06 12:05:32 +01:00
Jan-Marek Glogowski
efb96db109 QT5 implement Graphics damage tracking
Since we implement SalGraphics handling like the gtk3 backend, we
need damage tracking to queue updates.

Since there is no native damage tracking in Qt5, we have to log
the damage in our subclassed QPainter, which will queue an update
on destruction.

Change-Id: Ife17770750a5be9959c2fc2633b422908d196869
2017-11-06 12:05:32 +01:00
Jan-Marek Glogowski
e391db0974 QT5 implement alpha based drawing
Change-Id: Ide2ef42110798ed061f7e32e49e38b6428c22c01
2017-11-06 12:05:32 +01:00
Jan-Marek Glogowski
5f84bf9add QT5 port quarz Polgon and PolyPolygon handling
Change-Id: I53807bff3db9c9e4300f03e56857381cad7c9431
2017-11-06 12:05:32 +01:00