Commit graph

404340 commits

Author SHA1 Message Date
Miklos Vajna
2a5f1d2a3d external: update to pdfium-3021
Change-Id: Ie6bbf7dd0418987a82e44c93b076aa443c00f171
Reviewed-on: https://gerrit.libreoffice.org/34588
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-24 08:07:39 +00:00
Stephan Bergmann
6502c53d5f Oh, those are called Updates, not Service Packs
Change-Id: If6cfe913445e8855eab3736d9abc63d7e152b361
2017-02-24 08:59:43 +01:00
Szymon Kłos
6d1e22a9b8 Make ToolbarMode's "IsExperimental" property non-nillable
Change-Id: Ia83776d7ee23fa56c0fc541c228c68b1832c3d11
Reviewed-on: https://gerrit.libreoffice.org/34585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-24 07:42:53 +00:00
Jochen Nitschke
b65f742d7a fix inverted warning logic
warning says the item pool is not empty,
so test item pointers for not null.
ever since initial commit cf7e1f9cc9

and make warning more descriptive by adding pool names

Change-Id: I3a8a6ca69e319d01418eac527b15f61adfd0fb13
Reviewed-on: https://gerrit.libreoffice.org/34589
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-24 06:05:52 +00:00
Justin Luth
1dadd312e5 tdf#105490: writerfilter exception - ULSpace must be >= 0
Instead of a minimal margin, default margins were being applied
because an exception was thrown when trying to set a negative
value to top and bottom margins in SvxULSpaceItem::PutValue

Change-Id: I0a9fc2c7cb996efbd26abfdbed27ea0bcb86d9a5
Reviewed-on: https://gerrit.libreoffice.org/34598
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2017-02-24 05:29:16 +00:00
Maxim Monastirsky
fe7c8e4ec1 Closing popup menu should close the parent toolbox
... if that toolbox is in popup mode (e.g. shapes toolbar
dropdowns, or the toolbar overflow floater). Same behavior
was introduced for non menu based dropdowns in
81d4fbc0da ("tdf#42029 Use a
floating toolbar to show clipped items"), and is similar
to what we had already in ToolBox::Select, i.e. when the
user made a selection, the floating windows should close.

This must be done before executing the menu selection
handler, because such handler might execute stuff
synchronously (e.g. MenuBarManager::Select), and if it
will open a modal dialog, the floating toolbox will stay
visible after the dialog shows.

Change-Id: Ie93e71fa4dea80ba444aebccacf6adb926a39224
2017-02-24 01:33:54 +02:00
Maxim Monastirsky
6dc453db7a Adapt insert image label for the context menu
... after commit fde6bbe41d
("right click to insert image"), added .uno:InsertGraphic
to the slide's context menu.

Change-Id: Ib801899c17cc4f765f46fd4b8884e6b57b455f6d
2017-02-24 01:33:15 +02:00
Maxim Monastirsky
89c05973ff Remove the intermediate xModel variables
And make sure to check for a nullptr xController
in GetBitmapForCommand.

Change-Id: Ib62bc06d0708847cfec54a71209cf68a4c32a50d
2017-02-24 01:28:21 +02:00
Stephan Bergmann
a8538f0774 When using MSVC 2015, require at least SP3
Change-Id: Ia5495f2eedfdbc9e42e06d95657bc01e3904b7e7
Reviewed-on: https://gerrit.libreoffice.org/34594
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-23 22:31:51 +00:00
Caolán McNamara
5d6b5bb57b assert on export of ooo59665-1.sxw to odt
rSecondStart.nContent in this case has no m_pIndexReg

just move on with our lives wrt this sorting

Change-Id: I9642c5d345dabd02f3feea83bc2ffbf3f7adb082
Reviewed-on: https://gerrit.libreoffice.org/34336
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-23 20:27:13 +00:00
Eike Rathke
029d55f919 let's try if using the new ROUNDSIG(...,12) helps
... against sporadic tinderbox failures.

Change-Id: I54dab5665575802b5fe9051d215399c3554e8fd8
Reviewed-on: https://gerrit.libreoffice.org/34578
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-23 19:28:19 +00:00
Caolán McNamara
58659cbaa8 Resolves: tdf#106159 right click + left click with comments in navigator
results in a disposed submenu in the menu, we need to flag with bSubPop4
that we have inserted the submenu into the parent menu to not dispose
it

Change-Id: I5b9711c0bba750c11d64dc175efd452f4bc8f4e5
2017-02-23 17:16:29 +00:00
Samuel Mehrbrodt
baee96e04a Remove commented out code
Change-Id: I1da07c52380e543b80c7725a8420c1927743257d
Reviewed-on: https://gerrit.libreoffice.org/34587
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-23 16:47:24 +00:00
Samuel Mehrbrodt
3788d6a264 Remove commented out code
Change-Id: I36e5f4072ac52a3073d13e4ad5185ead7611e722
Reviewed-on: https://gerrit.libreoffice.org/34586
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-23 16:36:21 +00:00
Stephan Bergmann
35f3759e5c There's no way to create an oslVolumeDeviceHandle for unx
...so the functions operating on them can all just return osl_File_E_INVAL. (The
way to create an oslVolumeDeviceHandle is via osl_getVolumeInformation storing
it into oslVolumeInfo.pDeviceHandle.  But the unx implementation of
osl_getVolumeInformation never sets that, so it'll stay at the null value that
callers must initialize it to.)

Change-Id: Ibabd89e8f9de0892a0e815d30b6397f869e7df70
2017-02-23 17:27:08 +01:00
Michael Stahl
f1bd815f60 sw: fix cursor backup in SwXText::insertTextPortion()
If the inserted string contains "\r", such as when importing
lp556169-2.rtf before the previous fix, the given cursor has one of its
positions mangled because its nNode will be on the new node, but the
nContent that is restored here is on the old node.

The invalid cursor causes an assert in the subsequent SetPropertyValues.

Change-Id: I73a2e6ecd02ccf75f7b9ffd89d90ae1e3a93ceb2
2017-02-23 16:42:39 +01:00
Michael Stahl
10e7339080 writerfilter: RTF import: hex-escaped \r and \n create paragraph break
... in Word 2010, while the spec doesn't say what they do.
So just handle \'0d and \'0a like \par.

This fixes an assert failure on importing lp556169-2.rtf, where
insertTextPortion was called with a string containing "\r", which split
the paragraph and that messed up the SwPaM.

Change-Id: Iee8b5b47e15d18232de841adfbc9c6498727c384
2017-02-23 16:42:38 +01:00
Miklos Vajna
78e25558e8 tdf#106059 PDF export: create a reference XObject for JPG images with PDF data
In case the bitmap is large enough, the bitmap for the PDF image is a
JPG one, not a PNG one. Handle this case as well.

Also stop compressing the PDF data: Adobe Acrobat gets confused when the
second bugdoc is compressed and it doesn't provide much as most of a PDF
is already compressed anyway.

The rest is just refactoring to decouple the reference XObject code from
PNG, to be able to use it for JPG as well.

Change-Id: I5314a39b0f6d8c6493ecb36a0c588c895f5a70ee
2017-02-23 16:36:18 +01:00
Samuel Mehrbrodt
aa8efc72d4 tdf#101652 No infobar when doc attr is readonly
One can set the a document attribute to open the doc read-only.
In this case the read-only infobar should not be shown.

Change-Id: I92b78dc3e20ccf0d258cdf3e4a79530f87a2e311
Reviewed-on: https://gerrit.libreoffice.org/34581
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-23 15:35:33 +00:00
Samuel Mehrbrodt
544104b957 Simplify logic
Change-Id: I4d2e94bb050f163cc691fda90be9dccbd2ca5e5f
Reviewed-on: https://gerrit.libreoffice.org/34580
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-23 15:35:05 +00:00
Caolán McNamara
0af436083e remove test for the moment
Change-Id: Ib583e336f5ba560b9c1648291853b14582446ee3
2017-02-23 15:29:14 +00:00
Caolán McNamara
69dfa8af78 m_nExtStyle isn't used in gtk[2|3]
Change-Id: Id03d0ee0d4aa29df85c7fcbcb59e1f769b63862f
2017-02-23 15:23:08 +00:00
David Tardon
c4be2f6eb0 quote this properly
Change-Id: I0c90c1c0396558a29f59b1fde8309bbeb15d1fb6
2017-02-23 15:48:34 +01:00
Katarina Behrens
f41fa22311 gpg4libre: Fix build by s/gpgme/gpgmepp/ on multiple places
let's see if it appeases the tinderboxes
Change-Id: Icfe97381395f5554d51cfb52289b3de89abbbb68
Reviewed-on: https://gerrit.libreoffice.org/34569
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-23 14:25:02 +00:00
Stephan Bergmann
5446a434b4 Silence -Werror=format-overflow
Change-Id: I09abf54d67d0033ff3f8d61498ab094745c2081b
2017-02-23 15:19:58 +01:00
Samuel Mehrbrodt
f827e119a3 Reduce indentation
Change-Id: Ie4578e45205ebf206a752651901f488a7edd648d
Reviewed-on: https://gerrit.libreoffice.org/34541
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-23 14:16:00 +00:00
David Tardon
d132f85fad add upstream URL to READMEs
Change-Id: I9cde5f94c81c59ff99b8f5af9765b94b6f57184a
2017-02-23 14:50:14 +01:00
David Tardon
3f69d7b8f5 update upstream link
Change-Id: I1ef0e9079c7af6eddae3e3dae11ca8c3899fd59e
2017-02-23 14:50:14 +01:00
David Tardon
a3f2bf61d9 change intervall -> interval
Change-Id: Ib211619428f16304603d9c0a9fce0b22dde2a617
2017-02-23 14:50:13 +01:00
Mark Hung
baf043318e solenv(gcc-wrappers): remove trailing space of includepath
Change-Id: Ic14140f197a2c5e1632fd27cfae38ca4eff9bd8c
Reviewed-on: https://gerrit.libreoffice.org/34562
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-02-23 12:35:02 +00:00
Caolán McNamara
a438651d2b ofz: don't loop endlessly on failed skip
Change-Id: Ibc105d8156e1b1ddf22948fb02165f8d03b4cfd5
2017-02-23 12:18:18 +00:00
Stephan Bergmann
cd23b010a2 Don't check HAVE_GCC_ATTRIBUTE_WARN_UNUSED on MSVC
...where -Werror -Wunknown-pragmas command line arguments will trivially make
the test always fail, anyway

Change-Id: Iae5534054331d41508f39d5cf141803ab5bc8ba7
2017-02-23 12:50:19 +01:00
Stephan Bergmann
f89f9aa6ad With GCC -std=gnu++17, dynamic exception specifications cause an error
...instead of a warning (as with Clang), so this follow-up to
e16644fa1c "external/mysqlcppconn: Silence
-Wdynamic-exception-spec errors" patches the (few) dynamic exception
specifications out of external/mysqlcppconn completely

Change-Id: I83a42f1c09e60c15fad1564cf7c42eb3370485da
2017-02-23 12:20:49 +01:00
Stephan Bergmann
9d2721b1bb -Werror=register in external/lcms2 (GCC -std=c++17)
Change-Id: Ic0c7fe636f8153f221c0bc221c547f23b0e780a2
2017-02-23 12:17:55 +01:00
Stephan Bergmann
73a9502ce8 Don't pass shared_ptr by value
...to avoid having to generate a temporary in e.g.
SwXParagraphEnumeration::Create (sw/source/core/unocore/unoobj2.cxx), and thus
to avoid <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79679> "[7 Regression]
[C++17] Missing destruction of temporary within constructor's
mem-initializer-list"

Change-Id: Ifaa5a6d0e9baa77a19752f54e7765783139bea95
2017-02-23 12:12:53 +01:00
Stephan Bergmann
280cd27dbd -Werror=format-truncation
Change-Id: I1b27289724389018bd4048573e8c8e4cf28eb983
2017-02-23 12:10:08 +01:00
Caolán McNamara
ee619fb344 ofz: don't read data that isn't there
Change-Id: I7fdcb78bde8f650c1a57d34177d8993a6d8a0a2f
2017-02-23 11:07:02 +00:00
Caolán McNamara
46b1b5dd2a make this a little clearer
no logic change intended

Change-Id: Ibfc46d0aba9e220be54270734e0cdfbc123be9a5
2017-02-23 11:06:59 +00:00
Caolán McNamara
840ad0a880 improve scoping
Change-Id: Ic79d46da4e322a0f52981c3a3df65f7f0294fdd8
2017-02-23 11:06:59 +00:00
Miklos Vajna
d8a277479f xmlsecurity: clean up leftover signaturetest
Which is not even built since gbuildification.

Change-Id: I5fbacc32289c4a534d49ca9042cca4e40fa53815
Reviewed-on: https://gerrit.libreoffice.org/34565
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-23 10:52:20 +00:00
Stephan Bergmann
59a63d8161 In Java, css.uno.RuntimeException doesn't derive from css.uno.Exception
Change-Id: I83850db6e3f3ac87d52e75f122ba2b6bba3905b9
2017-02-23 11:43:22 +01:00
Katarina Behrens
aceba1e1af gpg4libre: We want to use C++ library instead
in particular, the one from gpgme project. configure check is set
up in such a way that it will fail with older gpgmepp that depends
on KDE development packages.

This means Linux distros released before 2016 have to rely upon
in-tree version, but such is life ...

Change-Id: I5cdceffad6e81643603fcdee57a7656218f76834
Reviewed-on: https://gerrit.libreoffice.org/34130
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-23 09:23:37 +00:00
Stephan Bergmann
a9b4c7b31d Use more conventional TRUE for KDE4_HAVE_GLIB
Change-Id: Ic0d9177a6f07f5dbe4138e9a1a7cab1389dee97c
2017-02-23 10:20:53 +01:00
Stephan Bergmann
e52ad7191c Use more conventional TRUE for JAVA_CLASSPATH_NOT_SET
Change-Id: I3e782f9b7ae54a60ca0e71e66d7fb287837f47d7
2017-02-23 10:14:46 +01:00
Stephan Bergmann
78a2e5b5c5 HAVE_GCC_PRAGMA_OPERATOR is only needed as AC_DEFINE
Change-Id: I1f1978bbc8c38a7d5504fb86b8a716cbbc01c830
2017-02-23 10:09:37 +01:00
Caolán McNamara
3a70e0f1b9 ofz#663 leak in svm comment reader
Change-Id: Ia72da932d7927a143f1b3901d46d610a51fa551d
2017-02-23 09:00:34 +00:00
Stephan Bergmann
63cad601f3 Stray "LIBS=$save_LIBS"
copy/paste error in 0032fc0385 "Fix check for
broken standard library"

Change-Id: Idef7fbada1f4d4e6afa8b03028a1e5c89c1b2077
2017-02-23 09:50:30 +01:00
Stephan Bergmann
2c952c6a59 New loplugin:subtlezeroinit
Change-Id: I4530021d78f714d389833bd00ea87430d1d20f52
2017-02-23 08:49:33 +01:00
Stephan Bergmann
43f2a7d979 Better make the zero-initialization more explicit
...if initializing these members is necessary at all; a bit hard to tell from
the code.

Change-Id: I3ddb25c35f0d1b44a092bdb2cb0192ce619f947c
2017-02-23 08:49:32 +01:00
Stephan Bergmann
802ac3e437 Assert IdContainer's bInit in uno_releaseIdFromCurrentThread
...implying that pLocalThreadId, nRefCountOfCurrentId, pCurrentId are
initialized, implying that zero-initializing them during construction isn't
necessary.

Change-Id: I98399203694edde14abc664a82861ba50dfb357c
2017-02-23 08:49:32 +01:00