Commit Graph

400738 Commits

Author SHA1 Message Date
Tor Lillqvist
22166c75ee loplugin:nullptr
Change-Id: I6ab405e7e9a0c8ac3a323fd2484e334c500280ae
2016-12-12 15:52:53 +02:00
Tor Lillqvist
00d3aaa2dc loplugin:unnecessaryoverride
Change-Id: I45d7e14cef0058c4bfca4a3466e31d64e29bdfae
2016-12-12 15:52:52 +02:00
Tor Lillqvist
dfc643a5f7 loplugin:unreffun
Change-Id: If538d5d5347f58e18869cab2b687af26a39a89eb
2016-12-12 15:52:52 +02:00
Stephan Bergmann
b472cced46 loplugin:staticmethods
Change-Id: Ic8e00ab8961811044c26eb237f283617ddeb5cb6
2016-12-12 14:36:24 +01:00
Caolán McNamara
2337adc26d unwind RID_OUTLINEBITMAPS imagelist
Change-Id: I44a03f557d7a7aafeb17e5d662797203f975672f
2016-12-12 13:27:20 +00:00
Miklos Vajna
cc27d03895 sw: prefix members of SwClient
Change-Id: If35981bce951dfab4a784d4cb54ac911249572ed
2016-12-12 14:00:27 +01:00
Caolán McNamara
9c76f39343 manage OutlineBitmap imagelist directly in its owner user
Change-Id: I4437484192016db7ce72614ae07c5a7d1bd9ec5b
2016-12-12 12:33:33 +00:00
Caolán McNamara
96d0506fce unwind RID_IMGLST_LAYOUT imagelist
Change-Id: I17146905c93162977effe9179c844ba691320d35
2016-12-12 12:33:31 +00:00
Laurent Balland-Poirier
0412d863d1 tdf#104268 NLPSolver: Improve display of solution
Format "%.2f" is not optimal for large or small values.
Format "%g" should be prefered.

Change-Id: I92899d80564b9000b1f3e049221c456f8e1176a9
Reviewed-on: https://gerrit.libreoffice.org/31445
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 12:26:35 +00:00
John Paul Adrian Glaubitz
d5d6ee3b3e uno: Add support for targets with 16-bit alignment
Despite being a 32-bit architecture, m68k has a basic
alignment of 16-bit for historic reasons. On m68k,
SAL_TYPES_ALIGNMENT8 is therefore equal to 2 and we
need to cover this case in the static asserts as well.

Change-Id: I4c756af25d57e5d49209697f6e678ef71a5845aa
Reviewed-on: https://gerrit.libreoffice.org/31878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-12 12:24:11 +00:00
Arnaud Versini
033ff2f9ad comphelper: cleanup class NameContainer.
Remove useless class NameContainerImpl.

Change-Id: I3066abea69ed68d597aeecdd6b3ec7264f7ebe9c
Reviewed-on: https://gerrit.libreoffice.org/31830
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 12:18:28 +00:00
Noel Grandin
02ed1924eb OSL_TRACE->SAL in sd..sdext
Change-Id: I6b224fa890dc96aada7140af27078da5e25c3ff8
Reviewed-on: https://gerrit.libreoffice.org/31898
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 12:17:26 +00:00
Caolán McNamara
b540899c1e remove another imagelist
Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
2016-12-12 11:59:21 +00:00
Caolán McNamara
7892566b9e update png locations for various imagelist unwindings
Change-Id: Ib0106c3b88cf54e54aaf784bb526480a1c745a1f
2016-12-12 11:58:38 +00:00
Michael Meeks
079a578025 Revert "tdf#103654: Make git hash clickable in the About dialog"
This reverts commit cc02097495.

Need to improve the solution here a little I think.
2016-12-12 11:43:40 +00:00
Bjoern Michaelsen
01afbf1278 reintroduce CONV2CHAR/CONV2LINE split
Change-Id: I02a3a46d2222b8bfe955eb17ca655d36d9155b48
Reviewed-on: https://gerrit.libreoffice.org/31867
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:41:31 +00:00
Bjoern Michaelsen
a4c6d5c8a0 refactor out lcl_SetRelationOrient
Change-Id: I9759a0f21641b6f5ba5e456e5c45ac28238ca672
Reviewed-on: https://gerrit.libreoffice.org/31866
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:40:45 +00:00
Bjoern Michaelsen
d505b5d884 add relative to tablecell as state
Change-Id: I76e9d317dabeefcdf53468a89f3a6130279993f3
Reviewed-on: https://gerrit.libreoffice.org/31865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:38:36 +00:00
Bjoern Michaelsen
880e622d2e refactor out lcl_GetWW8Pos
Change-Id: Ie7127668aceade312c68ed3d7f3398fbaf5e8df7
Reviewed-on: https://gerrit.libreoffice.org/31864
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:37:37 +00:00
Bjoern Michaelsen
d2be1f90fa use message passing
Change-Id: I49c448c454f9bb820c3b9afa3825c58cb2dab978
Reviewed-on: https://gerrit.libreoffice.org/31863
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:35:24 +00:00
Bjoern Michaelsen
be3cf47a5c move enums up so core specific functionality can follow
Change-Id: Iad8b5ff731c9d53f0f015a95387a00993a4a31f8
Reviewed-on: https://gerrit.libreoffice.org/31862
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-12-12 11:34:24 +00:00
Caolán McNamara
b61565ebb0 remove another imagelist
Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
2016-12-12 10:29:21 +00:00
Caolán McNamara
554ff8ef0f coverity#1371265 Missing move assignment operator
Change-Id: I5b7c6992e92e4d096b8230774ed8f4bfaaad5831
2016-12-12 10:29:21 +00:00
Mike Kaganski
dd747c0669 tdf#99227: use correct serializer when exporting drawing
Failing to do that leads to write-past-end-of-document, drawing
loss and SAXParseException if the drawing is part of a footnote.

A unit test is included.

Change-Id: Ie7d8263dc72dfef1e9827cc0579a5eaaf5819410
Reviewed-on: https://gerrit.libreoffice.org/31871
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-12-12 10:05:12 +00:00
Noel Grandin
71b1e3ff63 tdf#104573 - Assertion failed: SolarMutex not locked when trying
to bring up File Open... dialog

we need to hold the SolarMutex when doing VclPtr ref-counting

Change-Id: I843f2a243acaf73db1f6557df23475fe5bb12131
Reviewed-on: https://gerrit.libreoffice.org/31892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 10:02:08 +00:00
Caolán McNamara
e43a712550 coverity#1397054 silence bogus Dereference after null check
Change-Id: Ifceb60ee9f1f5e0ba5fd68d88a0358b5400008ee
2016-12-12 09:50:43 +00:00
Caolán McNamara
7803f6ba19 coverity#1397042 Unchecked return value
Change-Id: Ibb24dea2464c2e0bba289f08bba053efe6fe57fc
2016-12-12 09:47:41 +00:00
Caolán McNamara
c43c50723d coverity#1397041 Unchecked return value
Change-Id: Ia8c601475bea142faad9c1f1e9b797d0ebc13679
2016-12-12 09:47:41 +00:00
Caolán McNamara
510f497f05 coverity#1397045 Unchecked return value
and

coverity#1397044 Unchecked return value

Change-Id: I193bd676e417c35450efa91cb5773c78c998b63f
2016-12-12 09:47:41 +00:00
Caolán McNamara
c5ba9161a8 coverity#1397046 Unchecked return value
Change-Id: I7f8988a7cf5f3d815a20cac249b3753d732994e1
2016-12-12 09:47:40 +00:00
Caolán McNamara
cc777d31c1 coverity#1397048 Unchecked return value
Change-Id: Ie33ef6565cadcddb59c1d78a63aec666e8693f87
2016-12-12 09:47:40 +00:00
Caolán McNamara
d6b094bc8f coverity#1397043 Unchecked return value
Change-Id: I37c49aa568646e44c05f5feec537d344a2440b91
2016-12-12 09:47:40 +00:00
Noel Grandin
69f6fbb5d0 tdf#104046 - Slides in the slide pane don't update in realtime
This appears to be a consequence of my change

    commit 942716fee1
    convert EID constants to typed_flags

in that change I made a "fix":
    @@ -689,20 +687,20 @@ void
EventMultiplexer::Implementation::CallListeners (EventMultiplexerEvent&
rEv
         ListenerList::const_iterator iListenerEnd
(aCopyListeners.end());
         for (; iListener!=iListenerEnd; ++iListener)
         {
    -        if ((iListener->second && rEvent.meEventId))
    +        if (iListener->second & rEvent.meEventId)
             iListener->first.Call(rEvent);
         }
     }

which causes this bug.

I should have noticed that my "fix" indicates that the event filtering
part of this multiplexing code was never working, and since no-one has
ever complained about, lets just remove all of this unnecessary
complexity.

Change-Id: Id71613d4fd5817ee1358705059e4ce63d57573ad
Reviewed-on: https://gerrit.libreoffice.org/31894
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 09:45:03 +00:00
Caolán McNamara
e9e1ccec47 coverity#1397053 Logically dead code (golden)
and

coverity#1397055 Inferred misuse of enum

copy and paste error from the other converted call site I bet

Change-Id: I63701db153c5fd424374a95dd757d9fd7a8bc216
2016-12-12 09:31:52 +00:00
Caolán McNamara
299c5f87ae coverity#1397052 Logically dead code (golden)
regression from...

commit b894104a0b
Date:   Thu Dec 8 00:43:09 2016 +0200

    Pass GlyphItem around

    We have this nice structure that contains (almost) all the information
    we need, so pass it around instead of passing separate fragments of said
    information.

presumably this is the correct fix given the context of the other changes

Change-Id: I8518e739b1caa00ea5ae1569282e98810462d4c3
2016-12-12 09:23:43 +00:00
Stephan Bergmann
cfd2691e5b [API CHANGE] Remove salcpprt static library
...containing replacements for global operator new/delete (that can be linked
into executables), but which is no longer used.  The mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2012-March/028690.html>
"operator new no longer routes through rtl_AllocMemory in libsalcpprt under
gbuild link rules" has the details of how this was used on some platforms (but
not on others) before the switch to gbuild, and has been "lost" ever since---but
apparently a loss not mourned much over the years.

For the SDK, c5f974287f "INTEGRATION: CWS jsc3:
#i62434# copy libsalcpprt.a" added the library (under Linux) and
6db9c5af96 "INTEGRATION: CWS jsc3: #i62434# extend
link options for executbales to link libsalcpprt.a, LINUX only" added its use to
odk/settings/settings.mk, but fc0ca57f2c
"INTEGRATION: CWS jsc21" removed that use again (for no documented reason).  So
this is an incompatible change, but unlikely to actually affect any users of the
SDK.

Change-Id: Ia38b4c439f21fca3f5d9af7d1a34054e992054e9
Reviewed-on: https://gerrit.libreoffice.org/31810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-12 09:16:34 +00:00
Noel Grandin
d6f2dd831a remove useless Mutex guards
Change-Id: Ib1edb681b47ce98e2e810d15111932002786aa51
Reviewed-on: https://gerrit.libreoffice.org/31875
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 09:16:09 +00:00
Caolán McNamara
221a3413af coverity#1397056 Dereference null return value
Change-Id: Ieda3afdbdbcc8aa21f6584edc21738c4edb84000
2016-12-12 09:11:11 +00:00
Caolán McNamara
3249009bb7 coverity#704109 Unchecked return value
and

coverity#1397040 Unchecked return value
coverity#1397047 Unchecked return value
coverity#1397049 Unchecked return value
coverity#1397050 Unchecked return value
coverity#1397051 Unchecked return value

Change-Id: Idf7dd7818b74c661a1f7a757f0bdc16e2d1d5c72
2016-12-12 09:11:11 +00:00
Noel Grandin
b7f92a21a4 tdf#101563 - Export to PDF with linked images creates huge PDF files.
Looks like it was introduced by

    commit 19b34c0039
    loplugin:passstuffbyref in svtools

and since it's windows only, probably some subtle mis-compilation.

Aron Budea tracked this one down.

Change-Id: I77e65ea8a1fb0003d6ff0f3b0f8019f275ff3462
Reviewed-on: https://gerrit.libreoffice.org/31893
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-12 09:02:46 +00:00
Caolán McNamara
111858d6c6 coverity#704108 Unchecked return value
Change-Id: I5bd58f94fbea3d59849f60f2096e5191dbb0d810
2016-12-12 09:01:07 +00:00
Adam Kasztenny
13cba3505f tdf#95416 Fix an include for xmlsecurity
Move one header file to inc/

Change-Id: If8f4bfcf29464011fe68573e7d4e67900aacc2cd
Reviewed-on: https://gerrit.libreoffice.org/31891
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-12-12 08:53:53 +00:00
Mike Kaganski
6f5024de2e tdf#104425 sw: split rows w/large min height (fix layout loop)
This solves the problem of rows with too big minimal height causing
layout failure (the table just goes out of page, does not flow to
next page).

It does so with three steps:
1. Currently, a row with a minimum height that flows to next page
repeats whole min height on that (and possibly following) pages.
If this behaviour continued, then that would cause layout loop:
the row min height would be too high for the page, so it would
keep flowing to next pages (actually just go beyond the botom
because of layout failure). To mitigate this, the patch changes
the behaviour to measure total height of all frames of the row:
the function lcl_calcHeightOfRowBeforeThisFrame calculates the
total height of previous row frames for the same row, then in
places where we need to get min height, this value is subtracted
from row min total height. On following pages the min height of
frames will get less each time.

2. When the row is split, the possibility to split depends on if
the minimum height of the row fits into the vertical space left.
The minimum height is found as maxinum of two values: minimal
contents of the row (e.g., height of first line of text, or an
object, or lower table cell), and the minimum height setting.
As the minimum height setting should not prevent the cell to
flow, (it only should ensure that total height is no less), we
should not consider the setting when the split is performed
(we should be able to keep on first page as little as required).
To allow this, a new bool member introduced in SwRowFrame:
m_bIsInSplit, with its setter and getter. When it is true,
the routines that calculate min height ignore the min height
setting. It is set in lcl_RecalcSplitLine around lcl_RecalcRow
and SwRowFrame::Calc that decide if it's possible to keep part of
row's content on first page, and update table's height to fit
the rest of space.

3. It turns out, that if contents of the splitted cell has less
height than the min height setting, then following happens.
In SwTabFrame::Split, all rows below splitted one are moved to
follow flow table; then table frame's Shrink method used to shrink
the freed height. At this moment, still, the height of splitted
row is too high, and total height of table is too high. Then,
lcl_RecalcSplitLine is called, where row is first shrunk, and then
lcl_RecalcRow and SwRowFrame::Calc try to move contents and resize
the splitted row. They get the minimum height of content (we already
don't consider the min height setting), but then "last row will fill
the space in its upper" (see SwRowFrame::Format). Row returns its
previous size, table does not resize, it doesn't fit to page, and
split fails.
To try to fix that, I call SwTabFrame::Shrink in lcl_RecalcSplitLine
after lcl_ShrinkCellsAndAllContent before lcl_RecalcRow.

Unit test included.

Change-Id: I8422e43cff7d6b5955541ed3fe930779429ed55b
Reviewed-on: https://gerrit.libreoffice.org/31774
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-12-12 08:23:30 +00:00
Matúš Kukan
7740e945e0 gid_File_Bin_Gnome_Open_Url was removed
..in eaa7f30102

Change-Id: I149ee4087dffe54fd63bacd3bb5aba67159fac72
2016-12-12 08:39:47 +01:00
Matúš Kukan
1e074a455e Remove some not used SCPDEFS
Change-Id: Ib85895c21cef9baeccc468b476cbd8170ee4c9ce
2016-12-12 08:39:47 +01:00
Takeshi Abe
424553f160 starmath: Omit empty dtor
Change-Id: I7c905255627fb5286378e077d52932e9b184f054
Reviewed-on: https://gerrit.libreoffice.org/31853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-12 07:31:45 +00:00
Takeshi Abe
384f1c6501 Mark as local
Change-Id: Ic8ed367a5774eb3a939163fb1c1fe9518c3d7d2d
Reviewed-on: https://gerrit.libreoffice.org/31855
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-12 07:30:57 +00:00
Lionel Elie Mamane
7b0c57b2fa some compilers don't like implicit bool-to-ORowSetValue conversion
Change-Id: Ic4463db8aeca6ae9a86f7b890f95eb73724c6a1b
2016-12-12 07:49:46 +01:00
Takeshi Abe
5e79d60fa9 Mark as const
Change-Id: Ie4b7d45d26fbd839f9afcd11a7ba4bff80ed54e8
Reviewed-on: https://gerrit.libreoffice.org/31854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-12 04:58:41 +00:00
Mike Kaganski
53dbc419b2 tdf#63593: revert 88f91adf26
This patch caused a regression that on creation of a new sheet
while there's an unfinished edit of a cell, by using "+" in bottom
left corner, that edit is committed to newly created sheet instead
of that in which it was performed.

Also, fixing original problem (tdf#42432), it forced the pending
edit on deleted page to go to an existing page, which could
overwrite existing data without being noticed (dataloss).

Reverting the patch does not reintroduce the original problem that
it intended to fix (a crash) in master.

Change-Id: I696a85ec9d08ebb3621ebdbce4d9f71eadcdb2c2
Reviewed-on: https://gerrit.libreoffice.org/31843
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-12-12 03:33:18 +00:00