Commit Graph

434067 Commits

Author SHA1 Message Date
Noel Grandin
48dc1e48d0 loplugin:unnecessaryoverride look for more patterns
like
   bool Foo::bar() {
       b = Super::bar();
       return b;
   }

Change-Id: I5e4c8005a3da7d7487c9039c35dcbb1d17e65bd7
Reviewed-on: https://gerrit.libreoffice.org/68418
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 09:13:25 +01:00
Miklos Vajna
4ca1789e57 writerfilter: make RTFDrawingObject members private
Change-Id: I72085b130dede835f3fc75cb1335eb3b0c0d9b2e
Reviewed-on: https://gerrit.libreoffice.org/68409
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-02-27 09:08:28 +01:00
Stephan Bergmann
1a5c76c16a Don't leave a stray a.out behind
Change-Id: I20acdccd1faa7b8edf7a5786be124ae063ebca67
Reviewed-on: https://gerrit.libreoffice.org/68405
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-27 08:31:43 +01:00
Bjoern Michaelsen
bf03f0b9b7 UNO SwXCellRange: uso SvtListener instead of SwClient
Change-Id: Id4fbe6e16bb63e3df2768ce38161847ea6ff7eec
Reviewed-on: https://gerrit.libreoffice.org/68406
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-02-27 07:55:55 +01:00
Zdeněk Crhonek
8bfb9bcdbe uitest Chart Data labels dialog
Change-Id: I94420e19a6ef12aee78f83ea7b1ac54433be0160
Reviewed-on: https://gerrit.libreoffice.org/68399
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-02-27 07:44:22 +01:00
Arkadiy Illarionov
181e560b30 Remove redundant condition
Change-Id: I21385a37a5e2107069919250dd35812ac5972422
Reviewed-on: https://gerrit.libreoffice.org/68411
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:37:55 +01:00
Noel Grandin
c5ac80d90e make cursor images part of the theme
This first step only affects GTK3, later we will extend the support
to other platforms.

Note that these images are derived from the OSX PNG files, not the header-file
encoded data we currently use for gtk/gtk3.

Also rename the files to more useful names.

Change-Id: Ia13a3f2ac35b06672aff724f4cf5bdcd823f6342
Reviewed-on: https://gerrit.libreoffice.org/67528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:36:31 +01:00
Noel Grandin
57ac2fcdda loplugin:unusedfields fix read/write when dealing with r<<= and >>=
Change-Id: I103bcc2f21741d0a52a0bdf053fdbddf5a3e9ea0
Reviewed-on: https://gerrit.libreoffice.org/68387
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:36:12 +01:00
Noel Grandin
7f2e5c9ad2 m_bShowAllShapes in SdPageObjsTLV is dead
since
  commit c4a91f1409
  Date:   Mon Feb 11 17:32:44 2019 +0000
  weld SdInsertPagesObjsDlg

Change-Id: I9644c492d02e930592fd568c15f2f87d12f4f038
Reviewed-on: https://gerrit.libreoffice.org/68386
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:35:44 +01:00
Noel Grandin
4d502ef355 loplugin:simplifybool improve search for negated operator
Change-Id: Id6ac35fefa5c3e1f64c222713791e849b3cb4d34
Reviewed-on: https://gerrit.libreoffice.org/68379
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:35:11 +01:00
Noel Grandin
19240f625f loplugin:unusedfields look for classes where we can make all the..
fields private

Change-Id: Id3c6b123f06ab5dcf87628de4c347626110d2d27
Reviewed-on: https://gerrit.libreoffice.org/68302
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-27 07:34:52 +01:00
Andrea Gelmini
60c7725a20 Fix typo
Change-Id: Ida6deb31f393d9c7457e41f2047ee364aa95ad2e
Reviewed-on: https://gerrit.libreoffice.org/68415
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-02-27 07:07:55 +01:00
Aleksei Nikiforov
5fe551931d tdf#123406 KDE5: Use delayed frame destruction
Destroy Qt5Frame after all events are received.
Update Qt5Object to use delayed destruction too.

Change-Id: I07c7251e097ad56f3616f325fdc394d00fec4f4f
Reviewed-on: https://gerrit.libreoffice.org/68316
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2019-02-27 01:04:03 +01:00
Aleksei Nikiforov
5e8276e665 tdf#119720 KDE5: Don't show hidden windows on modality change
This change fixes clipping and drawing issues
for document recovery window and other modal windows.

Change-Id: I005254d4cd2598f4f2d02ba7e7bbf7388affe36c
Reviewed-on: https://gerrit.libreoffice.org/68307
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2019-02-27 01:01:02 +01:00
Bjoern Michaelsen
9ae62c148d simplify lcl_SendChartEvent mess
Change-Id: I2476cbabbb3625ab0d562218102fbbcfbb08f4e6
Reviewed-on: https://gerrit.libreoffice.org/68404
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-02-27 00:52:44 +01:00
Caolán McNamara
a1fe4f5ab1 parentclass set_size_request is sufficient
Change-Id: I872fdb2d6d4c6279b6d4dc8f38e1153fcd919f22
Reviewed-on: https://gerrit.libreoffice.org/68395
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-02-26 22:07:41 +01:00
Stephan Bergmann
1663b1e823 tdf#120736: For Calc shared documents also check the original document URL
...as instead of the original shared document, a temporary copy (with a file URL
denoting a temporary directory, like <file:///tmp/lulmhoxl.tmp/0.ods>) is opened
in that case.

Change-Id: I415f5a0ec44ee06f7ca98495f0e8f032ba93e05c
Reviewed-on: https://gerrit.libreoffice.org/68391
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-26 21:15:57 +01:00
Stephan Bergmann
ea58b039ab loplugin:indentation (clang-cl)
Change-Id: I94689e4eed290b4505d2caba2d9802ef7fb6cffd
Reviewed-on: https://gerrit.libreoffice.org/68378
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-26 21:15:41 +01:00
Miklos Vajna
0a29c928af oox smartart, picture strip: fix lack of spacing around the picture list
The snake algorithm in PowerPoint seem to interpret spacing as follows:
if you have N elements, then there should be the requested amount of
spacing between the elements, and also double amount of spacing around
the actual list of elements.

With this, the SmartArt and the title shape in the bugdoc no longer
overlaps.

Change-Id: I5d6885b434bfaff9de9aac595a298a5346524e19
Reviewed-on: https://gerrit.libreoffice.org/68397
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-02-26 20:32:26 +01:00
Justin Luth
aebc79b670 tdf#116404 RTF: check locale if BiDi inherits Environment
RTF is a bit simplistic compared to the others, but at least
we can handle the Environment situation similarly.

Change-Id: I87bc389373275d19f1229e11ffd742836a0fd498
Reviewed-on: https://gerrit.libreoffice.org/66966
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2019-02-26 20:26:49 +01:00
Bjoern Michaelsen
b3394345c9 UNO redline: uno SvtListener instead of SwClient
Change-Id: Ic580df179c6aa1dedc866cf0882c124d5b13fcb3
Reviewed-on: https://gerrit.libreoffice.org/68360
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-02-26 20:11:39 +01:00
Bjoern Michaelsen
861e3220a1 UNO redlines: uno SvtListener instead of SwClient
Change-Id: Ie07147c9d6af469ed1088148dd8b9bdb64ae8590
Reviewed-on: https://gerrit.libreoffice.org/68362
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2019-02-26 20:11:17 +01:00
Zdeněk Crhonek
570cc11e82 uitest Chart Titles dialog
Change-Id: I41a48893d007cf9226f8fd9491af36a4d24a3661
Reviewed-on: https://gerrit.libreoffice.org/68393
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-02-26 19:12:36 +01:00
Aleksei Nikiforov
ea6b4b743d tdf#120824 KDE5: fix visible/enabled state for menu
Change-Id: I003703f0bc2e1697124e068a68bfb2e24c33cd1a
Reviewed-on: https://gerrit.libreoffice.org/68351
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-02-26 16:48:59 +01:00
Stephan Bergmann
0864947e63 loplugin:simplifybool (clang-cl)
Change-Id: Ia10e08c04fb6dfc18597fcfba3fe52cf0ba7184c
Reviewed-on: https://gerrit.libreoffice.org/68377
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-26 15:56:35 +01:00
Caolán McNamara
9856b68c86 these are modal dialogs
Change-Id: I28fe2ba99c4a17cab781d95ef9da8b2774667baa
Reviewed-on: https://gerrit.libreoffice.org/68383
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-02-26 15:44:06 +01:00
Christian Lohmaier
a0f3e3b2bf update credits
Change-Id: Ia47dbe8d0b8caf835fef50bc8e046d5a05f30b7d
2019-02-26 14:49:06 +01:00
Stephan Bergmann
f2e1b418a7 PropertyValue needs to be a complete type here (Windows, --disable-pch)
...when implicit special member functions are defined for FWE_DLLPUBLIC
MergeMenuInstruction etc.

Change-Id: Ida796edaea73cf2c918feee1ee961e2065f25ee8
Reviewed-on: https://gerrit.libreoffice.org/68376
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-26 14:34:15 +01:00
Olivier Hallot
7f20533b0a Update git submodules
* Update helpcontent2 from branch 'master'
  - Mute Pootle complain on reserved words
    
    Change-Id: I8e0832a8be6a5118aa1d8b306a250a87434088ca
    Reviewed-on: https://gerrit.libreoffice.org/68252
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-26 13:04:22 +01:00
LibreOfficiant
fce6f470d2 Update git submodules
* Update helpcontent2 from branch 'master'
  - Name tag updates in links
    
    Change-Id: I88cdf6ea514ba98d45d90d59bc170f4c59938df6
    Reviewed-on: https://gerrit.libreoffice.org/68382
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-26 13:03:51 +01:00
Andrea Gelmini
d17452e382 Removed executable permission on ODS file
Change-Id: I0d2318ea4176b301ec8e814e3de8816729bb6a51
Reviewed-on: https://gerrit.libreoffice.org/68381
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2019-02-26 11:43:05 +01:00
Andrea Gelmini
0df67c42eb Update git submodules
* Update helpcontent2 from branch 'master'
  - Removed executable permission on SVG file
    
    Change-Id: I6ff78e12c6d547f18e1808c79d32ef2d6ffa0037
    Reviewed-on: https://gerrit.libreoffice.org/68380
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-02-26 11:42:47 +01:00
Andrea Gelmini
be0b28194d Fix typo
Change-Id: If74c831e763b0067cc1e98d6bd3c8d2699d9891e
Reviewed-on: https://gerrit.libreoffice.org/68366
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2019-02-26 11:42:29 +01:00
Noel Grandin
53eb2cdb55 fix android build (2)
after
    commit 589ce33041
    Date:   Mon Feb 25 14:38:21 2019 +0200
    sal_uIntPtr->sal_uInt64 in SalTimer::Start

Change-Id: I0fe5d972d2acf90a98f6e0203c51e509a60920c1
2019-02-26 12:20:04 +02:00
Johnny_M
e522f035d8 Translate German variable names
As in f2afa2af10

Change-Id: I617544ff00128ec3ff4bc4cff523db55f49c493a
Reviewed-on: https://gerrit.libreoffice.org/68246
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2019-02-26 11:10:44 +01:00
Miklos Vajna
159e33ec66 oox smartart, picture strip: fix too many columns with aspect ratio request
The bugdoc has 3 items in the picture strip and PowerPoint laid this out
as a single column with 3 rows (as a snake algorithm). We used to put
the first two items to the first row and the third item to the second
row.

Improve out layout by taking into account what aspect ratio the child
algorithms request: this way it's obvious that we should use a single
column in case we have a large enough aspect ratio and few enough items.

(PowerPoint also uses multiple columns without the aspect ratio
request.)

Change-Id: I9f1158c04c665fc6a2c85e4ac3a1ed363b1c75fb
Reviewed-on: https://gerrit.libreoffice.org/68370
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-02-26 10:44:31 +01:00
Mike Kaganski
3caf379f1c svdtrans: nPi -> M_PI; nPi180 -> F_PI18000 to remove duplicates
Change-Id: Ia2c103a5b530d007f750e4a034b253b3ec5406ec
Reviewed-on: https://gerrit.libreoffice.org/68368
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-02-26 10:12:29 +01:00
Jim Raykowski
b8f83e285a Add fill attributes to border background item set
...so the new background tab page works correctly in Calc Border/
Background dialog

Change-Id: I4121d5ef0e69ccd6f819b5ea760461004d484364
Reviewed-on: https://gerrit.libreoffice.org/68369
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2019-02-26 10:11:18 +01:00
Noel Grandin
42e5cb8cc0 fix android build
after
    commit 589ce33041
    Date:   Mon Feb 25 14:38:21 2019 +0200
    sal_uIntPtr->sal_uInt64 in SalTimer::Start

Change-Id: I0091ac4750dfb2ca8a3f4b5a544f7ec4f0ee0957
2019-02-26 10:57:11 +02:00
Serge Krot
3af17a7540 tdf#120161 calc uitest: print selection on cross pages
Change-Id: I3578a1c3e345211d3504d8abf6c520defb62f448
Reviewed-on: https://gerrit.libreoffice.org/68299
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2019-02-26 09:46:37 +01:00
Stephan Bergmann
60c121981d SwGluePortion::GetPrtGlue() can legitimately be larger than 'short`
At least during JunitTest_sw_unoapi_4
sw.SwXTextTable::com::sun::text::TextTable::TableColumnSeparators, some
SwFormatFrameSize is created with a width of USHRT_MAX ("Set USHRT_MAX as the
Table's default SSize") in SwDoc::InsertTable
(sw/source/core/docnode/ndtbl.cxx).  In SwTabFrame::Format
(sw/source/core/layout/tabfrm.cxx) that leads to nWishedTableWidth with a value
near USHRT_MAX and substantially larger than nMax, causing nLeftSpacing to be a
large negative value in the text::HoriOrientation::CENTER case.  That in turn
causes SwTextAdjuster::CalcRightMargin (sw/source/core/text/itradj.cxx) to
set

    pRight->PrtWidth( sal_uInt16( nRealWidth - nPrtWidth ) );

with a value of 32768 (where pRight is a SwGluePortion).  And a later call to
that SwGluePortion's GetPrtGlue would try to convert that 32768 to 'short',
getting flagged by Clang's -fsanitize=implicit-signed-integer-truncation.

In addition to changing GetPrtGlue (and MoveGlue) to use 'long' instead of
'short', drop some unncessary narrowing casts from client code.

Change-Id: I6a0d763acfad1fc3b550ec6107adf9f5429dd005
Reviewed-on: https://gerrit.libreoffice.org/68253
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-26 09:30:17 +01:00
Noel Grandin
8e9a2c860e fix windows build
after
    commit b792e4ee22
    sal_uLong->sal_uInt32 in drawEPS

Change-Id: Ic35c165cd9dd756e229c33f643355150d6249688
2019-02-26 10:23:45 +02:00
Miklos Vajna
b7dabb80f4 tdf#123393 RTF import: fix too big font size in table cell
The reason was that A2 had an explicit paragraph style reference, but A1
did not, so table buffering caused A2 style to affect A1 style as well.

Combine this with style deduplication, and then A2 style considered the
direct formatting (font size) in A1 to be redundant, so it was lost on
import.

Fix the problem by moving the copy&pasted properties buffering to a
single function, and there buffering not only the properties, but also
the active style index.

Change-Id: I99f2020b8bef237849fd622b25ac5ef0516d69e4
Reviewed-on: https://gerrit.libreoffice.org/68361
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-02-26 08:56:48 +01:00
Noel Grandin
984a0c79cb sal_uIntPtr->sal_uInt32 inSalClipRegion::BeginSetClipRegion
sal_uInt32 seems reasonable given that this is the number of rectanges
in an image.

And then convert all of the other BeginSetClipRegion methods to use
sal_uInt32 too.

Change-Id: I85a712ec823662ac30f3859051e2b974fb99775e
Reviewed-on: https://gerrit.libreoffice.org/68343
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-26 08:47:04 +01:00
Gabor Kelemen
0631a91c1d tdf#119167 Show Table toolbar above Track Changes toolbar
This way bottom docked toolbars appear above each other
to avoid Table pushing Track Changes out from under the mouse cursor

Change-Id: Ic0a9e745246bce6d12cfb17d6adf8ad703753168
Reviewed-on: https://gerrit.libreoffice.org/68365
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2019-02-26 08:25:41 +01:00
andreas kainz
f4ee6cb041 Sifr icon theme update
Change-Id: Icb79576142da57b5aa16af1df3df51217929799d
Reviewed-on: https://gerrit.libreoffice.org/68363
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-02-26 08:24:46 +01:00
Noel Grandin
589ce33041 sal_uIntPtr->sal_uInt64 in SalTimer::Start
because the call site specifies millis in a sal_uInt64 variable

Change-Id: I5cf42407b9e7f3cdef976d8f442609723fd67af9
Reviewed-on: https://gerrit.libreoffice.org/68342
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-26 07:35:04 +01:00
Noel Grandin
b792e4ee22 sal_uLong->sal_uInt32 in drawEPS
Change-Id: I58beedfee1a55df971e778ba2aa3b6989ba53663
Reviewed-on: https://gerrit.libreoffice.org/68341
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-26 07:34:56 +01:00
Noel Grandin
4e1a2eb8b1 sal_uIntPtr->unsigned in X11SalBitmap
Change-Id: I4ed777711c1302b3aaa73474b6182214c61b09f2
Reviewed-on: https://gerrit.libreoffice.org/68340
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-02-26 07:34:50 +01:00
Mark Hung
7e18b87566 tdf#88969 restart interactive sequence.
This patch allows the whole interactive sequence to
restart automatically when it's done. User don't
need to insert multiple pause toggle command to
a media object just for toggling the media
multiple times.

Change-Id: I000a55f580917327ae438ea8e79e62f63275cce7
Reviewed-on: https://gerrit.libreoffice.org/68283
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
2019-02-26 04:57:21 +01:00