Commit Graph

390578 Commits

Author SHA1 Message Date
Rohan Kumar
aba0c20fb0 tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I disentangled my previous patch to make one patch per module. I also
modified the patch according to new directions given by Sweet5hark

Change-Id: Id690f7c1e87230e4d10e1c9fe472f35d1d1caa8b
Reviewed-on: https://gerrit.libreoffice.org/22924
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-04-12 11:49:21 +00:00
Bjoern Michaelsen
941e891d16 lp#1566050: prevent cyclic reference zombies
regression, likely from 2660d24a07:

1/ Since that change mxAccessible in ScCsvGrid holds a rtl::Reference on
a ScAccessibleCsvGrid
2/ Which in turn holds a VclPtr<> (aka a rtl::Reference with lipstick)
on the ScCsvControl

These are a circular references, making both of them live forever and
leak past the point where on LibreOffice close all of Vcl is long gone,
when these are dtored. Clearing mxAccessible on disposing should help.

Change-Id: Iebb2635ec4ea143e7f0dbfebad2e6141a68e72e8
Reviewed-on: https://gerrit.libreoffice.org/24020
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12 10:35:00 +00:00
Noel Grandin
48b8898bd7 clang-tidy performance-unnecessary-value-param in basctl
Change-Id: Ie48eb08edd1335661d1ef57ae652713143951317
2016-04-12 12:05:01 +02:00
Noel Grandin
f045c536db clang-tidy performance-unnecessary-value-param in framework
Change-Id: I80987ea1bfac7478574de46ee30fc58fcc17eb68
2016-04-12 11:56:07 +02:00
Noel Grandin
230cd63867 clang-tidy performance-unnecessary-value-param in starmath
Change-Id: Ic8d319dac1d18f548d47ac84e489c04412a38d1a
2016-04-12 11:55:28 +02:00
Noel Grandin
9649026cf5 clang-tidy performance-unnecessary-value-param in sd
Change-Id: Id55410931305a9695a001977a5227b430a984e99
2016-04-12 11:54:45 +02:00
Noel Grandin
6a8873c874 clang-tidy performance-unnecessary-value-param in filter
Change-Id: I6818f6c9593bfe7105cc194fcf6f69131046e4f3
2016-04-12 11:25:18 +02:00
Noel Grandin
dbd1f4b75a clang-tidy performance-unnecessary-value-param in dbaccess
Change-Id: I9cec61867b4e6e8abde7749047974c6de87b9669
2016-04-12 11:25:18 +02:00
Noel Grandin
f520af1735 clang-tidy performance-unnecessary-value-param in cui
Change-Id: I93a09bf8e475ec1aa2ebf7754c7048c81696922b
2016-04-12 11:25:18 +02:00
Noel Grandin
9cfa0810bd clang-tidy performance-unnecessary-value-param in chart2
Change-Id: Id33dce9714737dd28ce48c22f966c9747c2db20b
2016-04-12 11:25:18 +02:00
Noel Grandin
c473472fc0 clang-tidy performance-unnecessary-value-param in writerfilter
Change-Id: I1f61be80ac1ebe42668580b09a261e7e3af1a403
2016-04-12 11:25:18 +02:00
Douglas Mencken
8dcb7cf2a5 vcl: split out part of ImplGetTabRect into new function
Change-Id: I387417bf8fdfa85379b6d8eaa32738d0ed7ab519
Reviewed-on: https://gerrit.libreoffice.org/23900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-12 09:17:45 +00:00
Armin Le Grand
9c9970952b tdf#96887 enhance SolarMutex AcquireWithWait for Windows
Currently the Windows-specific method ImplSalYieldMutexAcquireWithWait()
uses a messaging mechanism to learn about the SolarMutex being free again.
This is not reliable when the MessageQueue overflows (MS allows 10000
messages per queue). It is more safe to use MsgWaitForMultipleObjects.
This also allows to not only wait for the SolarMutex to be freed, but
also to detect when SendMessage() is used which needs to lead to a
reschedule to not block current Window handling.

Change-Id: Id317dda62aaa1fe7677d8d28929e6936e5a22705
Reviewed-on: https://gerrit.libreoffice.org/23921
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-04-12 08:54:29 +00:00
Miklos Vajna
fc70e4c4e1 tdf#99224 PPTX export: implement support for images with text
In case an image had text, then ShapeExport::WriteGraphicObjectShapePart()
wanted to write "only the text", but PowerPointShapeExport::WriteTextShape()
had no idea how to write an image, so at the end nothing was exported.

Change-Id: I6c1ad0b41d4c5dc260b952322fb8a59e7f175603
2016-04-12 10:30:36 +02:00
Noel Grandin
9760db660a clang-tidy performance-unnecessary-value-param in sc
Change-Id: Ia2255e1e3f7a8834a4b5d2a6bbab2c6dd498d356
2016-04-12 10:16:25 +02:00
Stephan Bergmann
553f7e515d Revert "tdf#88206: use variadic variants for cppu helper"
This reverts commit cf1ecad26d. Library_mysqlc is
external_code, so cannot use these LIBO_INTERNAL_ONLY features.
2016-04-12 09:29:59 +02:00
Miklos Vajna
bb646c1472 tdf#99135 VML import: handle image crop
The spec says in theory a % suffix could be also supported, but let's
wait till that is seen in a real-world document.

Change-Id: Ie026915e38dcb03c99085a1740075364b00e1c8d
2016-04-12 09:18:58 +02:00
Noel Grandin
f9aee52eb5 give tools::ResId a shave and a haircut
m_nRT2 and m_nWinBits fields are not in use anymore, at least as far
back as 2013, when the heading files were moved around

Change-Id: Ie3299a5999976450803332aeab72d5c0e68227e2
Reviewed-on: https://gerrit.libreoffice.org/23960
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12 06:46:38 +00:00
Jochen Nitschke
4c7ec9f112 cleanup: remove unused com/sun/star/uno includes
Sequence.h(xx), Any.h(xx) and Type.h(xx)
and remove unused using-declarations from these files.

Add a few missing includes provided by them.

Change-Id: I6b91b6d1fdf9d0496dd546c0aab9bdcc6831a5d4
Reviewed-on: https://gerrit.libreoffice.org/23805
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12 06:38:26 +00:00
slideon
7f29612cf0 Add other tests to check_change_color
Add tests for GridColor and FootnoteLineColor

Change-Id: Ia1112cbff5fd77ae1fa83fac362e917eb35f530d
Reviewed-on: https://gerrit.libreoffice.org/24001
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-04-12 06:37:39 +00:00
Noel Grandin
7c99b5586d clang-tidy performance-unnecessary-value-param in sw
Change-Id: I3e030743b640d5a5f6b3bf4a4e9ba50ccd001287
2016-04-12 08:33:32 +02:00
Noel Grandin
dc0d98590f clang-tidy performance-unnecessary-value-param in xmloff
Change-Id: I8e6d8e66cdab2e50ee10882e139be29c14ce50f6
2016-04-12 08:33:32 +02:00
Noel Grandin
03fd8d24c2 clang-tidy performance-unnecessary-value-param in vcl
Change-Id: I403f148060891feec56d7d2ef173a9c4934baf9e
Reviewed-on: https://gerrit.libreoffice.org/23995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-04-12 06:32:52 +00:00
Pranav Kant
0a8abaadf3 lok context menu: Include uno commands for submenus too
Change-Id: I4ba49ba94a3270a5d53754320e5fbd49e3f5c848
2016-04-12 11:10:24 +05:30
Maxim Monastirsky
b0e678c861 FwkTabWindow is unused since d6d86237b1
Change-Id: Ifad573ac687548a889165012e7b7bb2f4b82750c
2016-04-12 00:43:06 +03:00
Maxim Monastirsky
747a0fdda2 SaveToolbarController: Better support of readonly docs
The sfx2 impl. of XStorable::isReadonly isn't really helpful
for files w/o write permissions that were switched to edit
mode, as it returns the state of the UI. So instead let's just
rely on the state of the .uno:Save slot.

Change-Id: I3b033be3c9424a4479e9224f02d186960b540d21
2016-04-12 00:12:32 +03:00
Rene Engelhard
cb6d938a07 don't install qstart.desktop if it's disabled (--disable-systray)
Change-Id: I21a53381ad4018034de3833e8e244d0d7a7d28b8
2016-04-11 23:08:29 +02:00
Maxim Monastirsky
a3a1c50d64 SaveToolbarController: Blacklist in Basic IDE too
Save as/to remote don't work there. Still would be
nice to have the modified state icon change there too,
but that's for a future investigation.

Change-Id: Id119a40c39f9c69738b1e61e23ffe3424276229e
2016-04-12 00:03:43 +03:00
Maxim Monastirsky
e58b807598 SaveToolbarController: Blacklist RelationDesign in officecfg
Change-Id: I8aa14bb76a26aa12771000b393bee37d26ba85e7
2016-04-12 00:03:34 +03:00
Stefan Weiberg
cf1ecad26d tdf#88206: use variadic variants for cppu helper
Change-Id: I58a00f721cbb37f97fdbc599d57c26b1e89f4c73
Reviewed-on: https://gerrit.libreoffice.org/23998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-04-11 16:25:08 +00:00
Stephan Bergmann
5183dad60e Lock member access in Frame::disposing
What a mess.  Ideally, Frame would use its own rBHelper.rMutex, not SolarMutex.
But much of the framework code it calls into uses SolarMutex, too, making it
difficult to change that without running into the risk of deadlock.  And then,
some member variables are cleared early in Frame::disposing, while others are
only cleared en bloc at the end.  Be conservative and keep it that way (as other
Frame functions recursively called from within Frame::disposing could observe
the difference and rely on the current behavior), even if that means creating
lots of small, independent locked regions within Frame::disposing (which can be
detrimental to both performance and correctness).

Change-Id: I28f9a379ce03ed661e96c7deb8eb73cb58fb2cf7
2016-04-11 16:58:48 +02:00
Stephan Bergmann
cd43b8cf32 Turn disableLayoutManager into a member function
Change-Id: I489859a53f98a1e70f8a79c3a974dd0d8954ccd1
2016-04-11 16:58:47 +02:00
Stephan Bergmann
819175e1f0 Remove leftover comments
Change-Id: Iabecc0d240c499ef81d8b85c8d0b37383813b06a
2016-04-11 16:58:47 +02:00
Stephan Bergmann
8c7e9633d3 Remove obsolete comment
Change-Id: I43b65f48d75e293c3fe721e6d5a401f1e176df12
2016-04-11 16:58:46 +02:00
Stephan Bergmann
14b26b7347 Combine successive private blocks
Change-Id: Id0da294261d9f42e4ba31864827e38e29bf44ea0
2016-04-11 16:58:46 +02:00
Stephan Bergmann
9258fc222d protected -> private
Change-Id: Ic021240bbc2069d6d47b51c0b8e0d81739a72151
2016-04-11 16:58:45 +02:00
Stephan Bergmann
eda008c4fa Fold impl_initializePropInfo into initListeners
Change-Id: I14d6461d442a8e0ff1efd719e7e2233ffbc523a5
2016-04-11 16:58:44 +02:00
Stephan Bergmann
69741ccf3d No need to lock SolarMutex here
Change-Id: Id626dc7c5c75b885b3665e06596b7a58d225cd4c
2016-04-11 16:58:43 +02:00
Noel Grandin
2c93d340ae clang-tidy performance-unnecessary-value-param in vbahelper
Change-Id: Ifbe78c4a43b9d77d6ecf481bb1a9aaac6bcd01a6
2016-04-11 15:12:11 +02:00
Noel Grandin
fb42d03b5a clang-tidy performance-unnecessary-value-param in unotools
Change-Id: Ife11111b0265da5d5a8a98766a94f3b640b357f5
2016-04-11 15:12:11 +02:00
Noel Grandin
b76c2ea81d clang-tidy performance-unnecessary-value-param in ucbhelper
Change-Id: I595485e8804d6f2e4e0f9bc8a78c8cb132411f7d
2016-04-11 15:12:10 +02:00
Noel Grandin
50d02ad99f clang-tidy performance-unnecessary-value-param in tools
Change-Id: I57b2fd191dfd937f3327f148b27767b364acf667
2016-04-11 15:12:10 +02:00
Noel Grandin
28c96a0910 clang-tidy performance-unnecessary-value-param in toolkit
Change-Id: Ic08723ef15f2bc31031e3887b9916ecc7e2205da
2016-04-11 15:12:10 +02:00
Noel Grandin
e9cded40c8 clang-tidy performance-unnecessary-value-param in svx
Change-Id: I3e8cd7cedb3e7b7ef05760d21b10994ce615324b
2016-04-11 15:12:10 +02:00
Noel Grandin
c399630f9c clang-tidy performance-unnecessary-value-param in svtools
Change-Id: I6360a780aac9a387fed3a1c9a086196dbba0b089
2016-04-11 15:12:10 +02:00
Noel Grandin
76bff82cc6 clang-tidy performance-unnecessary-value-param in sax
Change-Id: I46aad7b0a96210e5f3f278c3f6f3a945825b7cae
2016-04-11 15:12:10 +02:00
Arnaud Versini
d036e4df85 BASIC: Remove useless static_cast from basmgr.cxx
Change-Id: If389aaabd22751908beba7dee9dbc79460692524
Reviewed-on: https://gerrit.libreoffice.org/23958
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-04-11 12:57:56 +00:00
Miklos Vajna
0207ed2a00 sd: inline BEGIN_SHAPE/END_SHAPE macros
They are used only once.

Change-Id: I9d3f3ae1fd8210f09bc11b267ccb2d0a437701f8
Reviewed-on: https://gerrit.libreoffice.org/23991
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-04-11 12:54:48 +00:00
Caolán McNamara
93efd7ebba Resolves: tdf#98366 paste document has 10x10 sized SdPages...
so long lines in them are clipped out in the preview.

Change-Id: I355986ff4a9c9e53f8e8f5d41b63f74c633f41ee
2016-04-11 13:40:34 +01:00
Stephan Bergmann
a2f91994df Avoid reserved identifier
Change-Id: I6dfb2961adeb412405c58e0a0b51e130cbd3e0c3
2016-04-11 14:32:29 +02:00