403477 Commits

Author SHA1 Message Date
Tor Lillqvist
d502c33b20 Need <config_features.h> here, too
Change-Id: I9dc03760831f3f1ff433c67abde95060d533ea14
2017-02-01 17:35:42 +02:00
Stephan Bergmann
3667820d94 loplugin:useuniqueptr
Change-Id: Iffab8e3d8ecaad835d5f0cce68ede4eaea1547a4
2017-02-01 16:33:02 +01:00
Michael Stahl
fdb4527969 Revert "vcl: include config_features.h"
This reverts commit a4d5d69eb4a1f5f889c933e5a801582f31c6ad80.

Once is enough.
2017-02-01 16:21:10 +01:00
Tor Lillqvist
d60790a711 Need <config_features.h> here, too
Change-Id: Ie16af2d0943cec6374307e9afb09cd47ed6d7043
2017-02-01 17:20:49 +02:00
Stephan Bergmann
87087bab94 loplugin:stringconstant
Change-Id: I8b7611d6fdc55fc8cd9551e129a2e03e58682229
2017-02-01 16:00:41 +01:00
Stephan Bergmann
49c8235944 loplugin:unnecessaryoverride
Change-Id: I53699ef386dad99b38559defe985057492a5df76
2017-02-01 15:59:34 +01:00
Maxim Monastirsky
d46a9baff5 Updated core
Project: help  732cd669a0f593eeaacaa4f67bce5947a431c0c1

Adapt hids after popupmenu xml conversion

Change-Id: Icf119499f75a838ec6159ae19c33e16be9967da5
2017-02-01 14:51:31 +00:00
Maxim Monastirsky
53be223421 Convert MENU_BROWSER_DEFAULTCONTEXT to xml
Change-Id: If59ecb4ea92d9daf423aef870e79248f5bc93e6d
2017-02-01 16:44:29 +02:00
Stephan Bergmann
1028e5192c More ctor check fixes
Change-Id: Ifcce63b975fb7c4ac7e7545e3eadcc6f7f12e466
2017-02-01 15:38:50 +01:00
Michael Stahl
a4d5d69eb4 vcl: include config_features.h
Change-Id: I6e68a6728eed108c7670ebef6073394de3f53e6b
2017-02-01 15:34:20 +01:00
Stephan Bergmann
836b74aead Fix ctor check
Change-Id: Ie261d5412c510c045b4d93a6bf1a3d4cf4371897
2017-02-01 15:31:37 +01:00
Tor Lillqvist
a0b4f816ce Need <config_features.h> here, too
Change-Id: I39d443e582a6e82947f9c833b157f137a082a358
2017-02-01 16:27:32 +02:00
Tor Lillqvist
a5c20f649d Need <config_features.h> here, too
Change-Id: I8bd752814994fedac17fe0d002b415902c276b20
2017-02-01 16:21:54 +02:00
Stephan Bergmann
c14b9630a9 Adapt CustomTarget_odk/build-examples to macOS
Change-Id: Ib64d5b5fa1bf13a484adb296b969d1b96387f0c6
2017-02-01 15:16:24 +01:00
Stephan Bergmann
c306c444bf Also on macOS use JDK's .../Home/bin/javac etc.
Only on macOS, the SDK used to expect javac etc. in a Commands sub-dir (which
Apple's JDK 1.6.0 has but Oracle's JDK 1.8.x don't).  However, at least both
Apple's latest JDK 1.6.0 (as available via <https://support.apple.com/kb/DL1572>
"Download Java for OS X 2015-001") and any recent Oracle JDK 1.8.x (like
jdk1.8.0_121.jdk) have a Home sub-dir that contains a "standard" sub-tree with
bin sub-dir etc., like on other platforms.  So consistently make the SDK use
that instead.

This removes the JAVABIN Make variable from settings.mk.  It is assumed to not
be used by client code.

Change-Id: Ie0ad647f489528444dfd399c2f00500b772d3288
2017-02-01 15:16:24 +01:00
Mike Kaganski
c34fc4520d tdf#105625 related: also check selection across field boundaries
The problem in callnk.cxx was that when selecting 1 char to the right
using keyboard, and exiting field boundary, nCmp pointed to previous
position (inside field), and then compared to position to the left
(which also may be inside field), thus missing call change link (and
read-only state change). Seems that this was a mistake in commit
740efbb1daf26828f70dc785c1e107f67706286b.

In pam.cxx, if cursor was to the left of field, and then selected
1 char to the right to cross field's boundary, then both PaM's point
and mark had same fieldmark, but point was outside, and mark inside,
and as code didn't check this condition, so read-only state wasn't
properly set.

Unit test is augmented to check the second problem.

Change-Id: I7323e53eeb261b4ccdc0f9e36cc0956b373f104d
Reviewed-on: https://gerrit.libreoffice.org/33790
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-02-01 14:06:19 +00:00
Tor Lillqvist
f2278a10b2 Need <config_features.h> here
Change-Id: I391554dff6f92d7639d0a391f4b00437c7648a6b
2017-02-01 15:39:46 +02:00
Tor Lillqvist
1eac86f0a3 Nothing from <config_features.h> is used here
The #include was introduced in
96c1ae1d8e78ae8b9bd7d4001645cad24d62b720 with an #if on
HAVE_FEATURE_OPENGL, but that #if was later removed.

Change-Id: I70f839d5224e0a77a1640a5e23cbe64656c9cb1b
2017-02-01 15:37:14 +02:00
Noel Grandin
88dde756eb Revert "cancelCommandExecution - no need to pass exception by Any"
This reverts commit 4739b31dafc5154a2c7d6b3f0ee90686863656f0.

Apparently, passing a param of type css::uno::Exception to Any
will record precisely a css::uno::Exception in that Any, losing
any subtype information, which this commit changed.
2017-02-01 15:20:53 +02:00
Bjoern Michaelsen
52885c7b82 use message passing
Change-Id: Idc5fbdcd6d1a11b7607995c1d492ffc829879566
Reviewed-on: https://gerrit.libreoffice.org/33718
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-02-01 13:07:30 +00:00
Vitaliy Anderson
734c005875 Compatibility options refactoring. Part 1 small fix
Add missing recommended formatting options in Compatibility.xcs
Correct ConfigItem rootnode path for SvtCompatibilityOptions_Impl

Change-Id: I1e56b276bf4a0801ab724baaecda53168783b27f
Reviewed-on: https://gerrit.libreoffice.org/33786
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-02-01 12:56:50 +00:00
Caolán McNamara
00c4679641 gtk3 hidpi xor hack needs to use unscaled extents
so that e.g. the xor cursor in csv dialog can be seen when moving
the mouse across the ruler

Change-Id: Ia2f367d5f610d486a8e10b6bc278cbc8029cf2a1
2017-02-01 12:52:17 +00:00
Noel Grandin
994e38e336 loplugin: use TypeCheck instead of getQualifiedNameAsString
since the latter is rather slow

Change-Id: Ib73cdb923585580777c2265b561c1808e93b2baa
Reviewed-on: https://gerrit.libreoffice.org/33585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 12:49:42 +00:00
David Tardon
eb6c18dfbe upload poppler 0.51.0
Change-Id: I0d913699c3aac84f2bdfe50f9dec6e6921242744
Reviewed-on: https://gerrit.libreoffice.org/33776
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 12:25:58 +00:00
Noel Grandin
4739b31daf cancelCommandExecution - no need to pass exception by Any
all the call sites are passing an uno::Exception subtype

Change-Id: I6de1f00810e063e75ef620314561d7e2d6445ada
Reviewed-on: https://gerrit.libreoffice.org/33657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 12:17:56 +00:00
Tor Lillqvist
385c207e3a tdf#105620: Probably better to not ignore initial x0 and y0
So add to them instead of just assigning. In the bugdoc the initial
values were zero, but maybe in some other cases they aren't.

Change-Id: I3d399fe4aab9260817f171d4e69388a19eb85d21
2017-02-01 14:16:07 +02:00
Noel Grandin
2489000d3f loplugin:useuniqueptr extend to check local vars
just the simple and obvious case for now, of a local var being allocated
and deleted inside a single local block, and the delete happening at the
end of the block

Change-Id: I3a7a094da543debdcd2374737c2ecff91d644625
Reviewed-on: https://gerrit.libreoffice.org/33749
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 12:15:22 +00:00
Katarina Behrens
595848c85a gpg4libre: Support building --with-system-gpgme (Linux only so far)
Change-Id: I22af89b920d43f3fc5f0fff02070f288bfa59fb4
Reviewed-on: https://gerrit.libreoffice.org/33702
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-01 12:11:22 +00:00
Miklos Vajna
ee32c7d808 tdf#105461 PDF export: handle text fill color
Text portion level background in Writer text was working already, as
Writer paints its background explicitly, and then uses no text fill
color in the metafile (that is turned into a PDF later).

However, text fill color is used for Writer shape text and also in
Impress. The rectangle is not just the text itself, but also the ascent
/ descent region, this matches the desktop rendering result.

Change-Id: I644007ade43a8b9e663890643b826ae12c427ea5
Reviewed-on: https://gerrit.libreoffice.org/33781
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-01 12:04:34 +00:00
Jochen Nitschke
8bf9bb1290 -Wunused-macros
Change-Id: I2d3b6f22deee0f2b9ec39592b89e0e4742659593
Reviewed-on: https://gerrit.libreoffice.org/33782
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-01 12:03:36 +00:00
Miklos Vajna
68c58b4691 xmlsecurity: various small cleanups
Change-Id: Id713460036331fd9f98fd1eca85ca61f57cf5afe
Reviewed-on: https://gerrit.libreoffice.org/33779
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-01 12:01:24 +00:00
Tor Lillqvist
b220bc6d82 tdf#105620: Fix placement of image embedded in graphic
Change-Id: I419e44d72f594fab0774152720f55c1d7d5366e6
Reviewed-on: https://gerrit.libreoffice.org/33723
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2017-02-01 11:43:30 +00:00
Stephan Bergmann
b834fad4a5 external/breakpad: Work around -fsanitize=alignment
...as seen in the scenario described in 5997121a51e240c762b4d002d7d16b94ac13d4a1
"Support signal handlers registered with SA_SIGINFO", first

> src/client/linux/minidump_writer/directory_reader.h:82:19: runtime error: member access within misaligned address 0x7f3f8235c2cc for type 'struct kernel_dirent', which requires 8 byte alignment
> 0x7f3f8235c2cc: note: pointer points here
>   10 02 00 00 d8 f8 3b 00  00 00 00 00 01 00 00 00  00 00 00 00 18 00 2e 00  00 00 00 04 02 c7 3b 00

and then

> src/client/linux/minidump_writer/linux_dumper.cc:382:19: runtime error: member access within misaligned address 0x7f96c225d7bc for type 'google_breakpad::MappingInfo', which requires 8 byte alignment
> 0x7f96c225d7bc: note: pointer points here
>   20 0a 32 30 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
>               ^

Change-Id: I7f739567879093a404bee3e351ce9e8257676183
2017-02-01 12:37:54 +01:00
Stephan Bergmann
5997121a51 Support signal handlers registered with SA_SIGINFO
...as is the case for external/breakpad's
google_breakpad::ExceptionHandler::SignalHandler (though that one appears to be
careful to check that its additional arguments are not garbage, cf. the
"Sometime, Breakpad runs inside a process where some other buggy code..."
comment in
workdir/UnpackedTarball/breakpad/src/client/linux/handler/exception_handler.cc).

Seen when JunitTest_framework_complex run under ASan/UBSan happened to trigger
an assert,

> soffice.bin: vcl/source/app/dbggui.cxx:47: void ImplDbgTestSolarMutex(): Assertion `ImplGetSVData()->mpDefInst->CheckYieldMutex() && "SolarMutex not locked"' failed.
> sal/osl/unx/signal.cxx:349:13: runtime error: call to function google_breakpad::ExceptionHandler::SignalHandler(int, siginfo_t*, void*) through pointer to incorrect function type 'void (*)(int)'
> (instdir/program/libsofficeapp.so+0xb7eab0): note: google_breakpad::ExceptionHandler::SignalHandler(int, siginfo_t*, void*) defined here
>     #0 0x7f6cefc21693 in (anonymous namespace)::callSystemHandler(int) sal/osl/unx/signal.cxx:349:13
>     #1 0x7f6cefc1f3e1 in (anonymous namespace)::signalHandlerFunction(int) sal/osl/unx/signal.cxx:422:9
>     #2 0x7f6cedbc95bf  (/lib64/libpthread.so.0+0x115bf)
>     #3 0x7f6ced20491e in __libc_signal_restore_set /usr/src/debug/glibc-2.24-33-ge9e69e4/signal/../sysdeps/unix/sysv/linux/nptl-signals.h:79
>     #4 0x7f6ced20491e in __GI_raise /usr/src/debug/glibc-2.24-33-ge9e69e4/signal/../sysdeps/unix/sysv/linux/raise.c:55
>     #5 0x7f6ced206519 in __GI_abort /usr/src/debug/glibc-2.24-33-ge9e69e4/stdlib/abort.c:89
>     #6 0x7f6ced1fcda6 in __assert_fail_base /usr/src/debug/glibc-2.24-33-ge9e69e4/assert/assert.c:92
>     #7 0x7f6ced1fce51 in __GI___assert_fail /usr/src/debug/glibc-2.24-33-ge9e69e4/assert/assert.c:101
>     #8 0x7f6cb60cdad5 in ImplDbgTestSolarMutex() vcl/source/app/dbggui.cxx:47:5
>     #9 0x7f6cbd337fb9 in DbgTestSolarMutex() tools/source/debug/debug.cxx:74:9
>     #10 0x7f6cb3c98abf in vcl::Window::ReleaseGraphics(bool) vcl/source/window/window.cxx:900:5
...

Change-Id: I2625541e0b9e50f9723e61e0cbff0e6c77d0fb9f
2017-02-01 12:30:23 +01:00
Caolán McNamara
4bd53cd880 Resolves: tdf#100438 focus trapped in disabled toolbar
lets just leave the toolbar active the whole time, seems
to make more sense anyway wrt being allowed to keyboard
into it to paste/insert special character

Change-Id: I174fb707c4c7fd21d95461cc93323eb6d8970818
2017-02-01 10:30:25 +00:00
Samuel Mehrbrodt
e78be1c18f InfoBar: Introduce different types
Makes it easier to push various infobars without specifiying the
colors manually.

Change-Id: I0f861ba02409a42ba2ae767a1ca7634eaf0e7aef
Reviewed-on: https://gerrit.libreoffice.org/33777
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-01 10:29:37 +00:00
Noel Grandin
bbd34216dc improve exception messages in stoc
Change-Id: I43716332ab916e5ec7b8ab7a4d14895d060a9bd4
Reviewed-on: https://gerrit.libreoffice.org/33692
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 10:23:58 +00:00
Caolán McNamara
2562ad74d1 stoi not a member of std under android toolchain
Change-Id: I73a4e7894e33dd95ca50ea25f5f95bf94a43531e
2017-02-01 10:22:17 +00:00
Caolán McNamara
dfdd01d122 with navigator in sidebar, press space, crash
because root entries have UserData of type SwContentType while children have
UserData of type SwContent (both inherit from SwTypeNumber)

Change-Id: Iab7a4caaca5dfdae16aa4f6ede565e26aa4c73c9
2017-02-01 10:11:11 +00:00
Caolán McNamara
567cd9043c turn switch with one case into if
Change-Id: I413f195bb5571eb536e948a7e9ffb982b3619e65
2017-02-01 10:11:10 +00:00
Samuel Mehrbrodt
d832e12606 Improve InfoBar labels for signatures
Change-Id: I50619d94c7bebeb99b5dbb9e21f0eefa3fd39482
Reviewed-on: https://gerrit.libreoffice.org/33778
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-01 09:28:15 +00:00
Caolán McNamara
2934b737e9 ofz#506 check len before alloc
Change-Id: Ia3a30936fadde10275a964d09150a3b6e4f3e16f
2017-02-01 08:56:31 +00:00
Khaled Hosny
55916dfc59 An env var to disable font lookup
To be used in layout tests.

Change-Id: I551b87786a4ad4ab34a22c458561109270fb4a31
2017-02-01 10:38:12 +02:00
David Tardon
22fa901db2 upload zlib 1.2.11
Change-Id: I4e19a9d976c28f5e6649bdbb3dd609e03a4c03a8
Reviewed-on: https://gerrit.libreoffice.org/33770
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 08:06:52 +00:00
Noel Grandin
dce867e8c4 loplugin:stringconstant handle calls to constructors with one arg
Change-Id: Ide9148a908bef46ba14640dfa6f556beaf6e3f60
Reviewed-on: https://gerrit.libreoffice.org/33772
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 07:57:16 +00:00
Jochen Nitschke
27832947f0 defaults are good enough ..
for copy ctor/assignment and dtor.
inline MEMBER_CONSTRUCTOR_LIST macro

Change-Id: I50296cebca3bc1aa43376ccd538c84df68a232a2
Reviewed-on: https://gerrit.libreoffice.org/33771
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 07:40:30 +00:00
Jochen Nitschke
0d17c4fa49 inline macros
move static arrays to anonymous namespace
try creating the SotAction arrays at compile time with constexpr

Change-Id: If0d0563b35936574beea617da08880a6c32569d9
Reviewed-on: https://gerrit.libreoffice.org/33750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 07:40:00 +00:00
Stephan Bergmann
5a3722b230 loplugin:stringconstant
Change-Id: Ic22b9c0c245cca23770a05518534a666e00f9f3e
2017-02-01 08:27:50 +01:00
Federico Bassini
6f08c43035 gbuild-to-ide: VSGenerator and testVs2013 with relative links
VisualStudio2013IntegrationGenerator  recently doesn't work
with the new relative paths in GbuilParser.
this patch does this, now it works fine with all relative paths.
what is missing it's in the .vcxproj:
<NMakeBuildCommandLine>
<NMakeCleanCommandLine>
<NMakeReBuildCommandLine>

these still work with absolute path but i start now on working this

Change-Id: I19610097edc11be67b4f7fd9f32b6683d334cc2d
Reviewed-on: https://gerrit.libreoffice.org/33735
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2017-02-01 07:23:08 +00:00
Noel Grandin
256ec177f9 convert ScChartGlue to scoped enum
Change-Id: Ia3dd20988d26e23e94581b019ff32c9ebc8663fe
Reviewed-on: https://gerrit.libreoffice.org/33753
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01 06:39:26 +00:00