Commit graph

415565 commits

Author SHA1 Message Date
Miklos Vajna
ea5339e31c git-hooks: mention download link for clang-format when warning about it
Change-Id: I99f2154bb3d15fe4a99c1d27ca20756e1fb31cec
Reviewed-on: https://gerrit.libreoffice.org/44810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-11-16 20:24:46 +01:00
Miklos Vajna
38d0142556 vcl: fix typo
Change-Id: I696e3986348034b61b3bbf13fa6db39f2a8f43e0
Reviewed-on: https://gerrit.libreoffice.org/44807
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-11-16 19:50:53 +01:00
Michael Meeks
fc6231f1d1 vcl: StyleSettings - start to unwind code duplication.
This should be a pure re-factor, plus:

    switch from Serif -> Sans font default for the UI (wow).
    enable larger font size for LOK only
        that avoids a hard to debug svx junit test failure.

Change-Id: Id438026064983ea4907819bab55c4be740954605
Reviewed-on: https://gerrit.libreoffice.org/44625
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-11-16 18:50:28 +01:00
Stephan Bergmann
84e1a01e2d Delete test*.odb files
...that are created in java.io.tmpdir (e.g., /tmp on Linux) by
connectivity.tools.HsqlDatabase.createDBDocument() during e.g.
JunitTest_dbaccess_complex.

This revealed that connectivity.tools.AbstractDatabase.delete() (even if it
would have been called by the test) would have been non-effective at deleting
the file, as the java.io.File constructor used takes a pathname not a file URL
as argument, so the call to java.io.File.delete() would not have deleted the
relevant file (and returned false, rather).

Change-Id: I268e1d1732ac7a0db9ccde7d4ac4f09aa3811e11
Reviewed-on: https://gerrit.libreoffice.org/44801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-11-16 18:28:36 +01:00
Stephan Bergmann
20f6242b2c Add comment to eventually remove __float128 workaround
Change-Id: I9f786bb34d05febe6c7393bde8ca9d9ce18f41c9
2017-11-16 18:01:23 +01:00
Caolán McNamara
2f672e801b ofz#4243 Timeout
Change-Id: Ib1d06c966d10cef2016522a63272bf5c1670977f
Reviewed-on: https://gerrit.libreoffice.org/44808
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 17:50:31 +01:00
Caolán McNamara
454537e4a2 ofz#4243 Timeout
Change-Id: I00767cfd99634f0ccd22e63cf0d635a2f75bc224
Reviewed-on: https://gerrit.libreoffice.org/44806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 17:41:04 +01:00
Eike Rathke
280a5166ad Straighten use of MAXSTRLEN to be maximum string length
... plus limiting 0-character, and not buffer length in (only)
some cases where max len then was MAXSTRLEN-1, accompanied by a
mix of >= and > comparisons.

Change-Id: I5b8452db52b1d464eb1410e31990043f7997af20
2017-11-16 17:09:20 +01:00
Stephan Bergmann
4ff66e42bf Make checkIdenticalDefaultArguments more precise
...by structurally comparing complex constexpr exprs that use template functions
that happen to not have been instantiated, so Expr::EvaluateAsRValue et al would
fail.  (Which happened with SFX_PRINTER_ALL in SfxViewShell::SetPrinter,
include/sfx2/viewsh.hxx.)

Now all of the LO code base should compile without causing
checkIdenticalDefaultArguments to return Maybe.

Change-Id: I2b103418c2c68f6d2242535c9cca3222a2508778
Reviewed-on: https://gerrit.libreoffice.org/44773
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-11-16 16:33:24 +01:00
Jean-Pierre Ledure
fa7f2ec536 Access2Base - FIX AllDialogs() should run when no active document
Stopped erroneously with error message "No active connection"
2017-11-16 16:15:05 +01:00
Caolán McNamara
359286b90f ofz#4079 check for error earlier
Change-Id: I141417811b0d64dbf1ad898f9f3a00e4e02d33c8
Reviewed-on: https://gerrit.libreoffice.org/44826
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 15:22:11 +01:00
Stephan Bergmann
4902712243 Avoid infinite loops in loplugin
...introduced with cab6e68369 "Make
checkIdenticalDefaultArguments more precise", causing older Clang to hang when
compiling specific LO source files.

Change-Id: I99cfcad2f0cd9adccd5aa84d21502f586762217f
2017-11-16 15:12:05 +01:00
Caolán McNamara
0d20c6abe9 fail earlier
Change-Id: I8a4f93eea723075103ccdc21e894f44d3bdb7c06
2017-11-16 13:50:24 +00:00
Caolán McNamara
e3b1c791f1 ofz#2977 Timeout
Change-Id: Ib7c00120b97b0d387048a5d8d9d36954e98ffee7
Reviewed-on: https://gerrit.libreoffice.org/44825
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 14:49:01 +01:00
Caolán McNamara
e94988dd8c ofz#3002 set a limit to how broken a jpeg is to give up recovering
take ImageMagicks 1000 warnings as the starting point

Change-Id: Id685764404d27b151daf031a4860055f64dd0915
Reviewed-on: https://gerrit.libreoffice.org/44818
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 14:47:31 +01:00
Caolán McNamara
f7ffc93bf6 ofz: limit depth of hwp parsing
Change-Id: Iba38cdea1fa9f3df4340988184adb1e8058ae931
Reviewed-on: https://gerrit.libreoffice.org/44816
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 14:46:23 +01:00
jan Iversen
6085f7a78a iOS, add tile sizing function
Added function to calculate needed tiles.

Change-Id: Ie598f6a5f438dea72c298e769bdba8fd00bbb4bf
2017-11-16 14:29:54 +01:00
jan Iversen
29c21f6dd7 iOS, update LibreOfficeLight version
Getting close to a realistic beta state

Change-Id: I30dddce6b52f622a3295b905d781b6c0543f45f7
2017-11-16 14:29:53 +01:00
Tor Lillqvist
ab99d4611c tdf#113875: Properly export 1bpp greylevel (but not B&W) PNG images to PDF
No idea whether 1bpp non-greylevel (i.e. with two palette entries that aren't shades
of grey) PNG images are mishandled.

Change-Id: I72173c7398db7f0e93c19679e3e392949bf1f4d2
2017-11-16 12:49:22 +02:00
Caolán McNamara
0845ef8cdb ofz#4245 Abrt add more services
Change-Id: I0241ab5a96b0ba2a458eb34c37ea76e23efe839b
2017-11-16 09:34:27 +00:00
Caolán McNamara
04c4e2c705 related ofz#4243 Timeout
Change-Id: I6734c1df06ce1b2cd0fcca488bc5d2fe333ad55b
2017-11-16 09:13:51 +00:00
Caolán McNamara
5f9dd5914b silence coverity#1399176 Uncaught exception
and probably a bunch of others

Change-Id: If4556e8914c770456f9de729426c52d5e27cb691
Reviewed-on: https://gerrit.libreoffice.org/44777
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 09:58:17 +01:00
Caolán McNamara
7719c53b2b silence coverity#1421123 Copy-paste error
Change-Id: If340824c749dda0668fabba9d417f4a2c2acc3ff
Reviewed-on: https://gerrit.libreoffice.org/44774
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 09:57:49 +01:00
Caolán McNamara
74dad3a6c5 coverity#1421111 Useless call
since

commit 1c46621b4b
Date:   Tue May 22 15:35:06 2007 +0000

    INTEGRATION: CWS chart2mst3 (1.85.12); FILE MERGED

Change-Id: I1af5fbaf4ed0bceb2062a9ed2de9ea5703cfbb97
Reviewed-on: https://gerrit.libreoffice.org/44776
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 09:57:34 +01:00
Caolán McNamara
0b3ed6c8e9 coverity#1421095 Useless call
and

coverity#1421110 Useless call
coverity#1421127 Useless call
coverity#1421082 Useless call

just returns aDocument member, so this isn't testing anything

Change-Id: I556d84c89128bbc652b0cc417e60a1a77ad0dfc9
Reviewed-on: https://gerrit.libreoffice.org/44775
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 09:57:02 +01:00
Caolán McNamara
ec1e5e9573 ofz#4230 Integer-overflow
Change-Id: If7c7591780fe7fa8d6fde3d17b606a4ab0acbf56
Reviewed-on: https://gerrit.libreoffice.org/44794
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-16 09:54:41 +01:00
Stephan Bergmann
c74f6d3c64 Warn when commit touches new files, but no suitable clang-format is found
Change-Id: Ifd254c30b8aecf6e7aec00bbfc8522a91bfa0909
2017-11-16 09:53:33 +01:00
Noel Grandin
1213036150 loplugin:useuniqueptr in hwpfilter
Change-Id: If6e8dfcec2842a329229e5c57417ca3f00ef74b3
Reviewed-on: https://gerrit.libreoffice.org/44763
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-16 07:55:00 +01:00
Noel Grandin
13b89618c4 use implict conversion operator in TypedWhichId
instead of spreading calls to Which() everywhere.

Change-Id: Ie32d106e44f5cb583908eeebe254ab8b8168ae61
Reviewed-on: https://gerrit.libreoffice.org/44760
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-16 07:54:24 +01:00
Andrea Gelmini
e1dd5d0ca4 Removed duplicated include
Change-Id: Ic59458337966b35f46279e653a73ab601787d7b9
Reviewed-on: https://gerrit.libreoffice.org/44764
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-16 07:09:40 +01:00
Ximeng Zu
8d977511e3 tdf#106370 Android: add ability to insert pictures
Added ability to insert pictures to Android Viewer.
You can take photo or select photo from device or
the cloud (Google photos, Dropbox). You can also
compress the picture before inserting it with multiple
compress grades. So far, inserting doesn't work for
Writer due LO native library issues (I think).

Change-Id: If6841ba04fe18585703c8b85909cf39747dbbc2f
Reviewed-on: https://gerrit.libreoffice.org/41150
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-11-16 06:31:48 +01:00
Ximeng Zu
4e2555b7f3 [Android] Add address/formula bars
Added address bar and formula bar to Calc.

Change-Id: I7cc7047d6d07629ab564261d294e481ae585fd29
Reviewed-on: https://gerrit.libreoffice.org/40842
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-11-16 06:31:10 +01:00
Caolán McNamara
a5550289a3 ofz: special case max index for cSymbol
Change-Id: Ia5fb036196b0cff0739789e691a36d294660540b
Reviewed-on: https://gerrit.libreoffice.org/44759
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2017-11-16 00:03:10 +01:00
Caolán McNamara
b2f2070ab6 drop now unused ToolPanelOpt
Change-Id: I26c93567f58b7b459eedbad85b5f3bfe554c8557
Reviewed-on: https://gerrit.libreoffice.org/44769
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-15 21:48:00 +01:00
Caolán McNamara
83111eda2e remove now unused ToolPanelModule
Change-Id: I30c91acf28fc8c9d1815796b0a0d7924b42a06f8
Reviewed-on: https://gerrit.libreoffice.org/44767
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-15 21:47:45 +01:00
Tamás Zolnai
0eb5a4daf0 Add ColorConfigCtrl to glade catalog
Change-Id: I8c6740bf6249f32eaeace1452073f8451d0df978
Reviewed-on: https://gerrit.libreoffice.org/44770
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-11-15 19:06:55 +01:00
Jens Carl
9ccd22820d tdf#45904 Move _XScenariosSupplier Java test to C++
Change-Id: I152f6358e505d7a480e157bd49613e0bb496e163
Reviewed-on: https://gerrit.libreoffice.org/44748
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-15 18:47:21 +01:00
Caolán McNamara
ee82c5b968 impress constantly trying to create an internal SidebarView
I think since the sidebar was integrated that this is dead
code belonging to the sidebars impress-only ancestor

Nothing creates the SidebarView[1], so attempt fails, a failed attempt
is scheduled in to try again on a configuration update timer

configuration update timer fails to load missing SidebarView
but broadcasts configuration update on each attemp

when the presenter console gets a configuration update it
refreshes its ui by loading the current slide

if the current slide has notes and those notes are long enough
to be scrolled and the user has scrolled to the end, then when the
slide is reloaded the notes are at the top again.

So presenter console notes scroll to the top after 5 seconds because
the configuration update fired, because the previous configuration
update didn't work.

This is old lady that swallowed a fly level stuff

[1] and I think its a typo here anyway and msSidebarViewURL should have
been msSidebarPaneURL

Change-Id: Ibfff16bb1092a49a8a54ca9697b5dc3819448af3
Reviewed-on: https://gerrit.libreoffice.org/44766
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-15 18:30:36 +01:00
Eike Rathke
48dcf7837e Assert all FormulaToken::Set...() virtual dummy methods
Attempting to set on a wrong token type can never be right.

Change-Id: I788221505a628f40dfbb9c2ee7c92ac789529303
2017-11-15 17:41:58 +01:00
Andrea Gelmini
deea8e0de9 Fix typo
Change-Id: Ia22202a2ce3557301ce7397f009b9b3ffff8cef3
Reviewed-on: https://gerrit.libreoffice.org/44765
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-15 17:15:37 +01:00
Caolán McNamara
41cd0bc2c4 crashtesting: assert on export of fdo59645-3.odt to docx
probably since...

commit 3f2e84b4bd
Date:   Tue Oct 31 23:39:26 2017 +0100

    tdf#38778 Fix output of the font in DOC run

    The font information should be output before field declaration.
    Added unit test.

    tdf#38778 DOCX output: no double output of the font info

need to also not double output the complex script font info as well
as the western and ctl info

I misread hAnsi as Asian the last time so thought CJK was already
handled, handle it for real this time

Change-Id: If57a3ca3f96a7b76f1fb8702a0d5071c0b3e5cd9
Reviewed-on: https://gerrit.libreoffice.org/44771
Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de>
Tested-by: Serge Krot (CIB) <Serge.Krot@cib.de>
2017-11-15 17:08:23 +01:00
David Tardon
a3df638a0c upload libmwaw 0.3.13
Change-Id: I9af801efd81bbe64117de52359491c05069c1947
Reviewed-on: https://gerrit.libreoffice.org/44736
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-11-15 16:26:40 +01:00
Stephan Bergmann
e6aec5ad0a Don't pollute /tmp with vba_debug* files
...put them at workdir/CppunitTest/oox_vba_compression.test.user/debug/ instead.

Change-Id: I067a82c05e2f91969d70cb582d69c4c1de13951c
2017-11-15 15:13:35 +01:00
Pranav Kant
43540adb76 lokdialog: Expose cursor visible status
Change the notifyDialog API a bit. Use a std::vector to keep track of
each payload item that needs to be fed to the resulting JSON.

Change-Id: If3229a88d2df5368e14290a0e80ebe6206780639
Reviewed-on: https://gerrit.libreoffice.org/44722
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-11-15 13:46:16 +01:00
Pranav Kant
a088f9e729 lokdialog: Callback for dialog cursor invalidation
Change-Id: Iecadb68737ed7b1a425d9ea633976fb24d1055c6
Reviewed-on: https://gerrit.libreoffice.org/44721
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2017-11-15 13:44:43 +01:00
andreas kainz
8aa381f8a1 tdf#108144: tabbed notebookbar add margins to seperators
Change-Id: I374873eed5e89c0788869150187219078d22f986
Reviewed-on: https://gerrit.libreoffice.org/44757
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2017-11-15 13:44:09 +01:00
Henry Castro
5f3216b952 sc: disable context menu of the language status bar item
Change-Id: Ifa4de8abff37179aca57b3890337f2475e5775eb
Reviewed-on: https://gerrit.libreoffice.org/44745
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2017-11-15 13:24:00 +01:00
Noel Grandin
5f4938d89d loplugin:flatten in xmloff
Change-Id: I782278b8a633094b96788f81ae7066a45d45b5fe
Reviewed-on: https://gerrit.libreoffice.org/44750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-15 13:06:13 +01:00
Noel Grandin
5b74eb6811 loplugin:flatten in vcl
Change-Id: I3527477277a9ae96eaf9fd068232f672da7c28c3
Reviewed-on: https://gerrit.libreoffice.org/44753
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-15 12:13:42 +01:00
Mike Kaganski
b4aa631867 3813dd1315 follow-up: revert incorrect loop changes
Change-Id: Ifdccf64630e76f6189668aa7f7412c41a6af04c2
Reviewed-on: https://gerrit.libreoffice.org/44756
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-11-15 11:57:38 +01:00