392762 Commits

Author SHA1 Message Date
Noel Grandin
11b4a6ddce Convert DeactivePage return code to scoped enum
Change-Id: Idd5372ad20fc6676864b31b3796f8b9bc0ad73dd
Reviewed-on: https://gerrit.libreoffice.org/25918
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-06 07:02:20 +00:00
Noel Grandin
7d1b01070c remove some manual ref counting in svx and xmloff
Change-Id: Ica0b6ff8ff7fa9e65cd758160d6e3ea7110ebb46
Reviewed-on: https://gerrit.libreoffice.org/25824
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-06 07:01:51 +00:00
Noel Grandin
9f138ffe9d remove unused constants in HRC files
Change-Id: Ia034fb16ce75caeb69fd746d4a602cd5fcfef6d1
Reviewed-on: https://gerrit.libreoffice.org/25817
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-06 07:01:43 +00:00
Noel Grandin
0323253a7c remove some manual ref-counting
triggered when I noticed a class doing acquire() in the
constructor and then release() in the destructor.

found mostly by
    git grep -n -B5 -e '->release()'

Change-Id: I96e43a3d30ffd9ae9a34275f24cd914d8f7b026f
Reviewed-on: https://gerrit.libreoffice.org/25806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-06 07:01:34 +00:00
Xisco Fauli
4d666f5092 tdf#89329: use shared_ptr for pImpl in slstitm
Change-Id: Icb9167f8e7612f40992e7146c0dce539c0b0eac7
Reviewed-on: https://gerrit.libreoffice.org/25632
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-06 07:01:24 +00:00
Bryan Quigley
71cf1aefca Remove unneeded Pane code in Presenter Console
This code hasn't been touched (on purpose) in years, it appears
to have been used to resize part of the console. (It's prefed off)

Change-Id: Iaaeaa8a95c71ae91299bbeeea24869bf2a237b6b
Reviewed-on: https://gerrit.libreoffice.org/24663
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-06-06 05:55:03 +00:00
Markus Mohrhard
0c7558f56d remove old debug output
Change-Id: Icf0e38c6725a129d3afb22b1cc79f72071c8e919
Reviewed-on: https://gerrit.libreoffice.org/25934
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-05 21:21:59 +00:00
Zdeněk Crhonek
0ade7b0d77 add EDATE test case
Change-Id: I3afc4aff71dc8a137b57f4e5fa2fc010c437bfb1
Reviewed-on: https://gerrit.libreoffice.org/25702
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-05 16:38:06 +00:00
Zdeněk Crhonek
7b587a2699 add DATEVALUE test case
Change-Id: I887c03b782e6ab7ea713a68150e920c49dc71b96
Reviewed-on: https://gerrit.libreoffice.org/25703
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-05 16:37:49 +00:00
Caolán McNamara
301a87c861 Resolves: tdf#100201 crash on apply custom color
regression from...

commit 789055bc2acb4c71483fd60ea258d158bd5aec10
Date:   Tue Apr 12 16:39:03 2016 +0200

    clang-tidy performance-unnecessary-copy-initialization

    probably not much performance benefit, but it sure is good at
    identifying leftover intermediate variables from previous
    refactorings.

This case has a comment explaining the problem that appeared post
change.

Change-Id: Ib0c0883c57f103656cda00e3a94399a515d7fe41
2016-06-04 20:43:44 +01:00
Lionel Elie Mamane
4005d61cd1 tdf#96516 fixup: when removing entry, entry count does not stay constant
Change-Id: I192a2d14787581545e66c46a84507f6dfd191c57
2016-06-04 17:40:50 +02:00
Mark Page
954f853c7b tdf#96099 Remove sfx std::shared_ptr typedefs
Removed SfxItemSet_Pointer_t and SfxStyleSheetIteratorPtr

Change-Id: Ibfa6a79809fdbbe2648dacc02625e620ceaf9bf0
Reviewed-on: https://gerrit.libreoffice.org/25851
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-04 09:45:55 +00:00
Markus Mohrhard
660b91b077 report the crash id back to the user
Change-Id: I5cc1e698294a5674d691529af8cc14e4cd87a711
Reviewed-on: https://gerrit.libreoffice.org/25865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-04 08:42:18 +00:00
Markus Mohrhard
d279628272 don't just silently ignore the return value
Change-Id: Ia65c29b61e78de4b908b11cd803d93da4b7e3a2d
Reviewed-on: https://gerrit.libreoffice.org/25864
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-04 08:42:10 +00:00
Markus Mohrhard
4e074fb818 integrate the minidump upload into the normal LibreOffice
Change-Id: Id1808ceebf6c54698f7d1656a0ce96bcaece89ac
Reviewed-on: https://gerrit.libreoffice.org/25863
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-04 08:42:02 +00:00
Markus Mohrhard
2d1fc99275 extract the minidump uploader code into a static lib
The plan for the near future is to still ship the executable but replace
the interal use if possible with using the static library.

At some point when it is not needed for debugging anymore and everything
works correctly we should only build the uploader executable in dev
configurations. The huge disadvantage of the interal solution is that it
is nearly impossible for a user to upload a crash report if LibO starts
working correctly. Also LibO overwrites the file with the information
after the upload whereas the executable does not.

Change-Id: Ib9854946be3a34e580964c18e1a9c0cce16221d1
Reviewed-on: https://gerrit.libreoffice.org/25862
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-04 08:41:56 +00:00
Jochen Nitschke
e95be04a73 initialise PointSequenceSequence directly
this list initialisation is short enough
to remove the local helper function

Change-Id: I17fab47e51fc0b1a0aa0462d517d7861f8a278e0
Reviewed-on: https://gerrit.libreoffice.org/25884
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-06-04 07:41:42 +00:00
Vasily Melenchuk
21e0900061 Make doc validation work on Windows
Change-Id: I37a3c729db320abbb43664eeebaa0f46eb889197
Reviewed-on: https://gerrit.libreoffice.org/25885
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-06-04 07:09:19 +00:00
David Tardon
4e3dc8c141 remove use of Archive::Zip
Change-Id: I7c1e0057c3c1c0b6be524d1e9ad37357259ebd7c
2016-06-04 08:09:56 +02:00
David Tardon
c3393443b4 drop unused option
Change-Id: I317160ca6ffc0ff1c7db443f844f02f91fad5929
2016-06-04 08:09:56 +02:00
krishna keshav
b2abb97a65 tdf#96099 Reduce number of typedefs used for trivial container types
Change-Id: Iecf8052d3f7ec5593205184622d53550e6a52161
Reviewed-on: https://gerrit.libreoffice.org/25836
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
2016-06-04 00:17:00 +00:00
Caolán McNamara
411e7e8803 fix 32bit linux build
Change-Id: Ib42627c04b2c06e34f2dd108f8a04eaea916488a
2016-06-03 21:15:08 +01:00
Caolán McNamara
a779d979b9 accidentially reverted fix for tdf#96745
Change-Id: I52380248002f6c41f0c6f154f913b05ef32b93d3
2016-06-03 21:09:23 +01:00
Markus Mohrhard
f2d18f8a71 add some more error checking to minidump uploader
Change-Id: Ia06fec80ea67e88b8c26cdeb5bfc9cee2459ad4a
Reviewed-on: https://gerrit.libreoffice.org/25861
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-03 18:02:03 +00:00
Michal Kubecek
de899f0b35 connectivity: firebird: use ODS12 test database for Firebird 3
Firebird 3.0 uses new database file format (ODS, On Disk Structure) so
that we need to use either ODS11 or ODS12 version of test database for
dbaccess_firebird test, depending on whether building against Firebird
2.5 or 3.0 libraries.

Change-Id: Idecdc35b0ac87ab7f46cb79b5c044c65423a2c7e
Reviewed-on: https://gerrit.libreoffice.org/25846
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-06-03 17:08:32 +00:00
krishna keshav
faaacb997b tdf#96099 Reduce number of typedefs used for trivial container types
Change-Id: I1ec93e281d7c2648a150c98144905f1158502dcc
Reviewed-on: https://gerrit.libreoffice.org/25835
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Tested-by: Akshay Deep <akshaydeepiitr@gmail.com>
2016-06-03 15:21:10 +00:00
Akshay Deep
74f6f03f55 Template Manager: Ctrl + A to select all templates
Change-Id: I8398268752c78a30d5fc076d6f2b6249cbf89ec2
Reviewed-on: https://gerrit.libreoffice.org/25860
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-03 15:07:54 +00:00
Akshay Deep
9b7bf60536 tdf#100195 Enable Keyboard Navigation in Template Manager and Start Center
Change-Id: Ic5447a4af091a4e3dcab4d909fc6bfb9e559defb
Reviewed-on: https://gerrit.libreoffice.org/25848
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-03 14:38:04 +00:00
Stephan Bergmann
a4740c8ea9 A slightly better DbusIpcThread
...that doesn't burn CPU by always directly returning again from a
dbus_connection_read_write call with zero timeout.  But still doesn't look like
it uses DBus the way it's intended to.  Help appreciated.

Change-Id: I0d130adfb921409a27a847053b0b3646dc566a86
2016-06-03 16:20:31 +02:00
Akshay Deep
f402a06a6a Reduce duplicate code in Template Manager
Remove ViewBar and put contents in ActionBar

Change-Id: I6551d36503f659f076ecf2b6766c6a14db771a1d
Reviewed-on: https://gerrit.libreoffice.org/25833
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-03 14:15:10 +00:00
Caolán McNamara
dc78e5c6f5 Resolves: tdf#98880 ensure backing context of DoubleVectorRefToken...
exists for the lifetime of the ScGroupTokenConverter

otherwise in tdf#98880 ScDocument::InterpretDirtyCells releases
that backing storage that the DoubleVectorRefToken relies on, and
the ScVectorRefMatrix relies on that, so...

when sc/source/core/tool/interpr4.cxx calls ::IsString on the ScVectorRefMatrix
which calls ensureFullMatrix. That makes use of rArray.mpStringArray where
rArray's mpStringArray is set to that rArray by
FormulaGroupContext::ensureStrArray and the storage of mpStringArray belongs to
the FormulaGroupContext, but that context was reset and destroyed up the stack
in ScDocument::InterpretDirtyCells so the data is now invalid

We could turn the unique_ptr into a shared_ptr and have the ScGroupTokenConverter
take a ref to the currently active FormulaGroupContext to ensure any generated
DoubleVectorRefToken/SingleVectorRefToken point to valid data during the
lifetime of the ScGroupTokenConverter

Change-Id: Id457934cdff18570961cb261cf5c46b6ef8ea083
Reviewed-on: https://gerrit.libreoffice.org/25815
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-06-03 14:06:39 +00:00
Tor Lillqvist
f062b89b27 Try to fix tinderbox build running in RDP session from Linux on Windows pre-10
It is a complicated scenario, but I think something like this is going
on:

Before Windows 10, only OpenGL 1.1 was supported in RDP sessions. Our
code detects RDP and tries to disable the use of OpenGL in that
case. This code for this is in the neighbourhood of the blacklisting
of OpenGL implementations. But the use of OpenGL in GLTF and chart2
does not go through code paths that would take that into
consideration, so it tries to use OpenGL anyway, and eventually we end
up in InitGLEW(), where the recently added check for OpenGL 3.0 or
newer causes an (intentional) abrupt termination of the process.

Change-Id: Ia57bfc8d2cefe4e6d7a00282973608d17967d3fd
2016-06-03 17:00:48 +03:00
Caolán McNamara
fce299fc64 Resolves: tdf#96008 crash when an extension with legacy decks is installed
ReadLegacyAddons modifies its vectors of maDecks and maPanels in this case, but
a load of things have (c++) references contents of the original contents.

Its such a rats nest that the easiest thing seems to be to make them
vectors of shared_ptrs and hold DeckDescriptor and PanelDescriptor
by shared_ptr and it all works out

Change-Id: I3f628e12c7d5f4224d14d5e0769e450ce893fb54
2016-06-03 14:20:32 +01:00
Miklos Vajna
a22af0b170 CppunitTest_sal_osl_file: fix loplugin:cppunitassertequals warnings
Change-Id: Ib0594ba236284aa69d180fb72ce60435b679ea05
Reviewed-on: https://gerrit.libreoffice.org/25852
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-06-03 12:08:53 +00:00
Noel Grandin
52225a3b7f Convert ComplexTextLayoutMode to scoped enum
Change-Id: I257f8e15fec92f0701235a6fe4b6a2272498c4f1
Reviewed-on: https://gerrit.libreoffice.org/25667
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 11:34:23 +00:00
Noel Grandin
1741c0ff36 drop "Solar-Version not set on rIStream" messages
nothing else in our codebase seems to care if we set a version on an
SvStream

Change-Id: I6c0e78dade5f1e79c4b5bf1ffe2a35d5261b6008
2016-06-03 13:33:26 +02:00
Takeshi Abe
013f9d5aaa Null pointer dereferences must not happen
This is a follow-up of 09981cd6383ecb99e4b6c83b98b03af5cf3ff59b.
Inspired by coverity#1362478 etc.

Change-Id: If5507c52552393cccbb255cbf4b7e9f4b80db917
Reviewed-on: https://gerrit.libreoffice.org/25840
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-06-03 11:01:09 +00:00
krishna keshav
6d29b6d80a tdf#96099 Reduce number of typedefs used for trivial container types
Change-Id: If4678b6e4b6e0724c50415679bb7188d900b5eba
Reviewed-on: https://gerrit.libreoffice.org/25643
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-06-03 10:59:10 +00:00
Caolán McNamara
05aaef5525 on switching to slide layouts panel move into slide layout context
i.e. exit current textbox edit and shape selection

Change-Id: I16a2fca158cb4caab7b6bd001742df698735dd2b
2016-06-03 11:31:00 +01:00
Caolán McNamara
b81daea4a7 OpenThenSwitchToDeck actually *toggles* deck visibility
so rename it to that and add a OpenThenSwitchToDeck that actually
does that, using the Toggle varient as the callback from the
sidebar button which toggles the current deck on/off

which retains the features of

// tdf#67627 Clicking a second time on a Deck icon will close the Deck
// tdf#88241 Summoning an undocked sidebar a second time should close sidebar

but means that calls to OpenThenSwitchToDeck from e.g. slide layout
don't auto close it if that deck is already open

Change-Id: I3e3724626b93447a7ab6bc7032e9c6839dabcf55
2016-06-03 11:29:25 +01:00
Jan Holesovsky
629f5c01ae Add an assert for a good measure.
Change-Id: I764e5c96b60705f01db9525ee02fdf9959db5663
2016-06-03 12:27:50 +02:00
Szymon Kłos
599f6db17c notebookbar: load ui for the start center
Change-Id: Iaf0e46436524e081edb287efd4074becaf02a98f
Reviewed-on: https://gerrit.libreoffice.org/25799
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2016-06-03 10:26:21 +00:00
Xisco Fauli
0216b8dc61 tdf#89329: use unique_ptr for pImpl in sbxvar
Change-Id: I74734c34e72ba5d508830dbcff88f0d3b93a0766
Reviewed-on: https://gerrit.libreoffice.org/25742
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 10:25:36 +00:00
Noel Grandin
4b917b2cfc ignore comment WMF meta-actions in WMF writer
Means nothing to this class and reduces spam in our unit test logs

Change-Id: I56a1d01b98372691003410b6d7b0e5326b2ee7eb
Reviewed-on: https://gerrit.libreoffice.org/25828
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 09:43:31 +00:00
Noel Grandin
623de75b65 script for grouping warning messages by most common
A script to search our test logs and sort the messages by how common
they are so we can start to reduce the noise a little.

Change-Id: I8a6e6167c42447f9869ac700300d1b243f055e2b
2016-06-03 11:43:02 +02:00
Michael Stahl
00ea075e86 sw: replace some OSL_ENSURE with assert
... and delete a couple that are obviously dead.

Change-Id: I2cef18371cc57f5fd82500d0ab6d74030004a761
2016-06-03 11:22:24 +02:00
Michael Stahl
1e815327cd sw: convert some OSL_FAIL to assert
Change-Id: Ia5244d58b8975a371c2d74809021c2332ffa496b
2016-06-03 11:22:23 +02:00
Caolán McNamara
e8db81b2fb Resolves: tdf#93971 freeze on load of specific html doc
this is similar to

commit 6acd5c45c764d81aea1539e66adbfadb51df0aa3
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Wed Jan 21 15:25:03 2015 +0000

    Resolves: fdo#87601 specific html doc hangs on load

and is a consequence of the old changeover from unsigned shorts for old string
class to signed int for new string class

Change-Id: I47022c641cbc329d8802765927005d43211b0d88
2016-06-03 10:17:00 +01:00
Noel Grandin
0d1ce0a79e Use AtomicLong in ThreadId instead of synchronizing
Change-Id: Ia10bab23b0cecb587cd3faa9c7e93b18384ecb88
Reviewed-on: https://gerrit.libreoffice.org/25827
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 09:09:23 +00:00
Noel Grandin
f3c1d240bd loplugin:constantparams
Change-Id: Ib162ba9297b9d900ea42c7e5216e152d3e58a361
Reviewed-on: https://gerrit.libreoffice.org/25769
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-03 09:08:42 +00:00